Package dev.morphia.mapping.experimental
Class UnsafeConstructorCreator
- java.lang.Object
-
- dev.morphia.mapping.experimental.UnsafeConstructorCreator
-
- All Implemented Interfaces:
InstanceCreator
,MorphiaInstanceCreator
public class UnsafeConstructorCreator extends Object implements MorphiaInstanceCreator
-
-
Constructor Summary
Constructors Constructor Description UnsafeConstructorCreator(EntityModel model)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
getInstance()
void
set(Object value, PropertyModel model)
Sets a value for the given FieldModel
-
-
-
Constructor Detail
-
UnsafeConstructorCreator
public UnsafeConstructorCreator(EntityModel model)
-
-
Method Detail
-
getInstance
public Object getInstance()
- Specified by:
getInstance
in interfaceInstanceCreator
- Returns:
- the new class instance.
-
set
public void set(Object value, PropertyModel model)
Description copied from interface:InstanceCreator
Sets a value for the given FieldModel- Specified by:
set
in interfaceInstanceCreator
- Parameters:
value
- the valuemodel
- the model
-
-