Class EncodableFactoryRepository


  • public class EncodableFactoryRepository
    extends Object
    Repository for every encodable objects factory. The identifier of a factory must be the concatenation of two short integers: the first one identifies the area of the class; the second one identifies the class. The area of the encodable objects defined in this encoding framework is 0.
    • Constructor Detail

      • EncodableFactoryRepository

        public EncodableFactoryRepository()
    • Method Detail

      • getFactory

        public static EncodableFactory getFactory​(Integer classId)
        Returns the specified factory.
        Parameters:
        classId - the identifier of the factory
        Returns:
        the specified factory
      • putFactory

        public static void putFactory​(Integer classId,
                                      EncodableFactory factory)
        Registers a factory.
        Parameters:
        classId - the identifier of the factory
        factory - the factory to register