Class JavaOptions
- java.lang.Object
-
- net.morimekta.providence.generator.format.java.JavaOptions
-
public class JavaOptions extends java.lang.ObjectOptions class for java 2 generator.
-
-
Field Summary
Fields Modifier and Type Field Description booleangenerate_providence_core_typesSet to true to generate types belonging in the 'net.morimekta.providence' and 'net.morimekta.providence.model' packages.booleangenerated_annotation_dateAdd current date to the@Generatedannotation for each generated class.booleangenerated_annotation_versionAdd providence version to the@Generatedannotation for each generated class.booleanhazelcast_portableAdd hazelcast_portable serializer and deserializers for portable interface.booleanjacksonAdd jackson serializers and deserializers.booleanrw_binaryAdd precompiled serialization for the binary protocol.booleanserializableMake all message types serializable.
-
Constructor Summary
Constructors Constructor Description JavaOptions()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringtoString()
-
-
-
Field Detail
-
jackson
public boolean jackson
Add jackson serializers and deserializers.
-
rw_binary
public boolean rw_binary
Add precompiled serialization for the binary protocol.
-
serializable
public boolean serializable
Make all message types serializable. Defaults to true. If false, only exceptions will be serializable (as theThrowableclass implements serializable.
-
hazelcast_portable
public boolean hazelcast_portable
Add hazelcast_portable serializer and deserializers for portable interface.
-
generated_annotation_version
public boolean generated_annotation_version
Add providence version to the@Generatedannotation for each generated class.
-
generated_annotation_date
public boolean generated_annotation_date
Add current date to the@Generatedannotation for each generated class.
-
generate_providence_core_types
public boolean generate_providence_core_types
Set to true to generate types belonging in the 'net.morimekta.providence' and 'net.morimekta.providence.model' packages. Per default this is skipped as the models are located in the 'providence-core' and 'providence-reflect' packages respectively, where they are mainly used.
-
-