@PrivateApi public final class CompactSerializationConfigAccessor extends Object
CompactSerializationConfig
.
This is intended to be used while registering serializers and Compact
serializable classes with declarative configuration. This kind of accessor is
necessary as the register methods on the CompactSerializationConfig
accepts concrete Class
or
CompactSerializer
instances
rather than the string representation of the fully qualified class names.
Also, it enables us to access registered classes using the programmatic API,
without providing a public API on the CompactSerializationConfig
.
Modifier and Type | Method and Description |
---|---|
static List<String> |
getCompactSerializableClassNames(CompactSerializationConfig config)
Returns the list of Compact serializable class names.
|
static Map<String,com.hazelcast.internal.util.TriTuple<Class,String,CompactSerializer>> |
getRegistrations(CompactSerializationConfig config)
Returns the map of the type names to programmatic registrations.
|
static List<String> |
getSerializerClassNames(CompactSerializationConfig config)
Returns the list of Compact serializer class names.
|
static void |
registerClass(CompactSerializationConfig config,
String className)
Registers a reflective compact serializer for the given class name.
|
static void |
registerSerializer(CompactSerializationConfig config,
String serializerClassName)
Registers an explicit compact serializer for the given class and type
name.
|
public static void registerSerializer(CompactSerializationConfig config, String serializerClassName)
public static void registerClass(CompactSerializationConfig config, String className)
public static List<String> getSerializerClassNames(CompactSerializationConfig config)
public static List<String> getCompactSerializableClassNames(CompactSerializationConfig config)
public static Map<String,com.hazelcast.internal.util.TriTuple<Class,String,CompactSerializer>> getRegistrations(CompactSerializationConfig config)
Copyright © 2023 Hazelcast, Inc.. All rights reserved.