Package com.tangosol.io
Interface NamedSerializerFactory
-
- All Known Implementing Classes:
SerializerProducer
public interface NamedSerializerFactoryA factory that producesSerializerinstances for a given name.- Since:
- 20.06
- Author:
- Jonathan Knight 2020.09.22
-
-
Field Summary
Fields Modifier and Type Field Description static NamedSerializerFactoryDEFAULTThe default implementation ofNamedSerializerFactorythat looks upSerializerinstances by name in the Coherence operational configuration.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SerializergetNamedSerializer(String sName, ClassLoader loader)Produces instances of a namedSerializer.
-
-
-
Field Detail
-
DEFAULT
static final NamedSerializerFactory DEFAULT
The default implementation ofNamedSerializerFactorythat looks upSerializerinstances by name in the Coherence operational configuration.
-
-
Method Detail
-
getNamedSerializer
Serializer getNamedSerializer(String sName, ClassLoader loader)
Produces instances of a namedSerializer.- Parameters:
sName- the name of the serializerloader- theClassLoaderto use to create aSerializer- Returns:
- an instance of a named
Serializer - Throws:
NullPointerException- if the name parameter is nullIllegalArgumentException- if no serializer is discoverable with the specified name
-
-