Package dev.morphia.mapping.codec
Interface InstanceCreator<T>
-
- Type Parameters:
T
- the type of the class
- All Known Subinterfaces:
MorphiaInstanceCreator<T>
- All Known Implementing Classes:
ConstructorCreator
,NoArgCreator
public interface InstanceCreator<T>
Creates instances of types.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description T
getInstance()
<F> void
set(F value, FieldModel<F> model)
Sets a value for the given FieldModel
-
-
-
Method Detail
-
getInstance
T getInstance()
- Returns:
- the new class instance.
-
set
<F> void set(F value, FieldModel<F> model)
Sets a value for the given FieldModel- Type Parameters:
F
- the model's type- Parameters:
value
- the valuemodel
- the model
-
-