Package dev.morphia.mapping
Interface EntityModelImporter
-
@MorphiaInternal @MorphiaExperimental public interface EntityModelImporter
Defines an importer to allow for the external definition and import of model and codec definitions.NOTE: This interface is marked as an internal interface but is intended for use in more advanced scenarios. While this API should remain relatively stable over time, breaking changes might happen occasionally.
- Since:
- 2.3
Developer note.This is an experimental item. Its function and presence are subject to change. Feedback on features and usability extremely welcome.Developer note.This is an internal item. Its function and presence are subject to change without warning. Its use is highly discouraged.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description MorphiaCodecProvider
getCodecProvider(Mapper mapper)
Returns the codec provider responsible for creating the codecs for theEntityModel
s returned by this importer.List<EntityModel>
getModels(Mapper mapper)
Returns the models to be introduced by this importer.
-
-
-
Method Detail
-
getCodecProvider
MorphiaCodecProvider getCodecProvider(Mapper mapper)
Returns the codec provider responsible for creating the codecs for theEntityModel
s returned by this importer.- Parameters:
mapper
- The datastore to use- Returns:
- the provider
-
getModels
List<EntityModel> getModels(Mapper mapper)
Returns the models to be introduced by this importer.- Parameters:
mapper
- the Mapper to use while building theEntityModel
s- Returns:
- the models
-
-