public static class JavaSerializer.Builder extends Object
JavaSerializer
.
The RevisionResolver
is defaulted to an SerialVersionUIDRevisionResolver
.
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
JavaSerializer |
build()
Initializes a
JavaSerializer as specified through this Builder. |
JavaSerializer.Builder |
revisionResolver(RevisionResolver revisionResolver)
Sets the
RevisionResolver used to resolve the revision from an object to be serialized. |
protected void |
validate()
Validates whether the fields contained in this Builder are set accordingly.
|
public JavaSerializer.Builder revisionResolver(RevisionResolver revisionResolver)
RevisionResolver
used to resolve the revision from an object to be serialized. Defaults to
an SerialVersionUIDRevisionResolver
which resolves serialVersionUID
of a class as the
revision.revisionResolver
- a RevisionResolver
used to resolve the revision from an object to be
serializedpublic JavaSerializer build()
JavaSerializer
as specified through this Builder.JavaSerializer
as specified through this Builderprotected void validate() throws AxonConfigurationException
AxonConfigurationException
- if one field is asserted to be incorrect according to the Builder's
specificationsCopyright © 2010–2024. All rights reserved.