Class Serializer
java.lang.Object
services.moleculer.service.MoleculerComponent
services.moleculer.serializer.Serializer
- All Implemented Interfaces:
MoleculerLifecycle
- Direct Known Subclasses:
BsonSerializer, CborSerializer, ChainedSerializer, IonSerializer, JavaSerializer, JsonSerializer, MsgPackSerializer, SmileSerializer
Base superclass of all data serializer implementations.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanEnable debug mode.protected final StringName of the format (eg.protected io.datatree.dom.TreeReaderData deserializer (eg.protected io.datatree.dom.TreeWriterData serializer (eg.Fields inherited from class MoleculerComponent
broker, logger, name -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class MoleculerComponent
getBroker, getLogger, getName, stopped
-
Field Details
-
format
Name of the format (eg. "json"). -
writer
protected io.datatree.dom.TreeWriter writerData serializer (eg. Tree -> JSON, comes from the "datatree-adapters" pack). -
reader
protected io.datatree.dom.TreeReader readerData deserializer (eg. JSON -> Tree, comes from the "datatree-adapters" pack). -
debug
protected boolean debugEnable debug mode.
-
-
Constructor Details
-
Serializer
-
-
Method Details
-
started
- Specified by:
startedin interfaceMoleculerLifecycle- Overrides:
startedin classMoleculerComponent- Throws:
Exception
-
write
-
read
-
getFormat
-
isDebug
public boolean isDebug() -
setDebug
public void setDebug(boolean debug)
-