Class CompactSerializationConfigAccessor

java.lang.Object
com.hazelcast.config.CompactSerializationConfigAccessor

@PrivateApi public final class CompactSerializationConfigAccessor extends Object
An accessor for the package-private fields of the 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.

  • Method Details

    • registerSerializer

      public static void registerSerializer(CompactSerializationConfig config, String serializerClassName)
      Registers an explicit compact serializer for the given class and type name.
    • registerClass

      public static void registerClass(CompactSerializationConfig config, String className)
      Registers a reflective compact serializer for the given class name. The type name will be the same with the class name.
    • getSerializerClassNames

      public static List<String> getSerializerClassNames(CompactSerializationConfig config)
      Returns the list of Compact serializer class names.
    • getCompactSerializableClassNames

      public static List<String> getCompactSerializableClassNames(CompactSerializationConfig config)
      Returns the list of Compact serializable class names.
    • getRegistrations

      public static Map<String,com.hazelcast.internal.util.TriTuple<Class,String,CompactSerializer>> getRegistrations(CompactSerializationConfig config)
      Returns the map of the type names to programmatic registrations.