Class CompactSerializationConfigAccessor

  • @PrivateApi
    public final class CompactSerializationConfigAccessor
    extends java.lang.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 Detail

      • registerSerializer

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

        public static void registerClass​(CompactSerializationConfig config,
                                         java.lang.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 java.util.List<java.lang.String> getSerializerClassNames​(CompactSerializationConfig config)
        Returns the list of Compact serializer class names.
      • getCompactSerializableClassNames

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

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