Package com.tangosol.io
Interface NamedSerializerFactory
- All Known Implementing Classes:
SerializerProducer
public interface NamedSerializerFactory
A factory that produces
Serializer instances for a given name.- Since:
- 20.06
- Author:
- Jonathan Knight 2020.09.22
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final NamedSerializerFactoryThe default implementation ofNamedSerializerFactorythat looks upSerializerinstances by name in the Coherence operational configuration. -
Method Summary
Modifier and TypeMethodDescriptiongetNamedSerializer(String sName, ClassLoader loader) Produces instances of a namedSerializer.
-
Field Details
-
DEFAULT
The default implementation ofNamedSerializerFactorythat looks upSerializerinstances by name in the Coherence operational configuration.
-
-
Method Details
-
getNamedSerializer
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
-