new ObjSerializerFactory()
Factory to register and create different types of serializer.
- Source:
Methods
-
(static) getSerializer(name) → {ObjSerializer}
-
Create a new serializer by name.
Parameters:
Name Type Description name
String Serializer name. If name not set, the default serializer will be created. - Source:
Returns:
Serializer instance or null (if name not found).- Type
- ObjSerializer
-
(static) registerSerializer(name, serializerClass, isDefault)
-
Register a serializer.
Parameters:
Name Type Description name
String Name of serializer. serializerClass
Class Class of serializer. Null can also be used here to unregister a serializer. isDefault
Bool Whether this serializer is the default one in factory. - Source: