Package | Description |
---|---|
org.bson.codecs.pojo |
This package contains classes specific to mapping user POJOs.
|
Modifier and Type | Class and Description |
---|---|
(package private) class |
ConventionAnnotationImpl |
(package private) class |
ConventionDefaultsImpl |
Modifier and Type | Field and Description |
---|---|
static Convention |
Conventions.ANNOTATION_CONVENTION
The annotation convention.
|
static Convention |
Conventions.CLASS_AND_PROPERTY_CONVENTION
The default class and property conventions
Sets the discriminator key if not set to
_t and the discriminator value if not set to the
ClassModels simple type name.
Configures the PropertyModels. |
Modifier and Type | Field and Description |
---|---|
private java.util.List<Convention> |
PojoCodecProvider.conventions |
private java.util.List<Convention> |
PojoCodecProvider.Builder.conventions |
private java.util.List<Convention> |
ClassModelBuilder.conventions |
static java.util.List<Convention> |
Conventions.DEFAULT_CONVENTIONS
The default conventions list
|
static java.util.List<Convention> |
Conventions.NO_CONVENTIONS
An empty conventions list
|
Modifier and Type | Method and Description |
---|---|
java.util.List<Convention> |
ClassModelBuilder.getConventions() |
Modifier and Type | Method and Description |
---|---|
PojoCodecProvider.Builder |
PojoCodecProvider.Builder.conventions(java.util.List<Convention> conventions)
Sets the conventions to use when creating
ClassModels from classes or packages. |
ClassModelBuilder<T> |
ClassModelBuilder.conventions(java.util.List<Convention> conventions)
Sets the conventions to apply to the model
|
private static <T> ClassModel<T> |
PojoCodecProvider.createClassModel(java.lang.Class<T> clazz,
java.util.List<Convention> conventions) |
Constructor and Description |
---|
PojoCodecProvider(boolean automatic,
java.util.Map<java.lang.Class<?>,ClassModel<?>> classModels,
java.util.Set<java.lang.String> packages,
java.util.List<Convention> conventions) |