public class EncodableFactoryRepository extends Object
Modifier and Type | Field and Description |
---|---|
private static int |
CLASS_ID_AREA |
static int |
ENCODABLE_INTEGER_CLASS_ID |
static int |
ENCODED_STRING_CLASS_ID |
static int |
ENCODED_STRING_LIST_CLASS_ID |
static int |
PROPERTIES_CLASS_ID |
private static Hashtable<Integer,EncodableFactory> |
repository |
static int |
SERIALIZABLE_WRAPPER_CLASS_ID |
static int |
STRING_PAIR_CLASS_ID |
Constructor and Description |
---|
EncodableFactoryRepository() |
Modifier and Type | Method and Description |
---|---|
static EncodableFactory |
getFactory(Integer classId)
Returns the specified factory.
|
static void |
putFactory(Integer classId,
EncodableFactory factory)
Registers a factory.
|
private static final int CLASS_ID_AREA
public static final int ENCODED_STRING_CLASS_ID
public static final int SERIALIZABLE_WRAPPER_CLASS_ID
public static final int STRING_PAIR_CLASS_ID
public static final int PROPERTIES_CLASS_ID
public static final int ENCODED_STRING_LIST_CLASS_ID
public static final int ENCODABLE_INTEGER_CLASS_ID
private static Hashtable<Integer,EncodableFactory> repository
public static EncodableFactory getFactory(Integer classId)
classId
- the identifier of the factorypublic static void putFactory(Integer classId, EncodableFactory factory)
classId
- the identifier of the factoryfactory
- the factory to registerCopyright © 2020 ScalAgent D.T.. All rights reserved.