Package com.tangosol.io
Interface NamedSerializerFactory
-
- All Known Implementing Classes:
SerializerProducer
public interface NamedSerializerFactory
A factory that producesSerializer
instances for a given name.- Since:
- 20.06
- Author:
- Jonathan Knight 2020.09.22
-
-
Field Summary
Fields Modifier and Type Field Description static NamedSerializerFactory
DEFAULT
The default implementation ofNamedSerializerFactory
that looks upSerializer
instances by name in the Coherence operational configuration.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Serializer
getNamedSerializer(String sName, ClassLoader loader)
Produces instances of a namedSerializer
.
-
-
-
Field Detail
-
DEFAULT
static final NamedSerializerFactory DEFAULT
The default implementation ofNamedSerializerFactory
that looks upSerializer
instances 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
- 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
-
-