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
Modifier and TypeFieldDescriptionstatic final NamedSerializerFactory
The default implementation ofNamedSerializerFactory
that looks upSerializer
instances 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 ofNamedSerializerFactory
that looks upSerializer
instances by name in the Coherence operational configuration.
-
-
Method Details
-
getNamedSerializer
Produces instances of a namedSerializer
.- Parameters:
sName
- the name of the serializerloader
- theClassLoader
to 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
-