Package dev.morphia.mapping
Class NoArgCreator
- java.lang.Object
-
- dev.morphia.mapping.NoArgCreator
-
- All Implemented Interfaces:
MorphiaInstanceCreator
@MorphiaInternal public class NoArgCreator extends Object implements MorphiaInstanceCreator
Developer note.This is an internal item. Its function and presence are subject to change without warning. Its use is highly discouraged.
-
-
Constructor Summary
Constructors Constructor Description NoArgCreator(Constructor<?> noArgsConstructor)
Creates the creator
-
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
-
NoArgCreator
public NoArgCreator(Constructor<?> noArgsConstructor)
Creates the creator- Parameters:
noArgsConstructor
- the constructor
-
-
Method Detail
-
set
public void set(Object value, PropertyModel model)
Description copied from interface:MorphiaInstanceCreator
Sets a value for the given FieldModel- Specified by:
set
in interfaceMorphiaInstanceCreator
- Parameters:
value
- the valuemodel
- the model
-
getInstance
public Object getInstance()
- Specified by:
getInstance
in interfaceMorphiaInstanceCreator
- Returns:
- the new class instance.
-
-