Interface EntityModelImporter

  • @MorphiaInternal
    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.

    Developer note.
    This is an internal item. Its function and presence are subject to change without warning. Its use is highly discouraged.
    Developer note.
    This is an experimental item. Its function and presence are subject to change. Feedback on features and usability extremely welcome.
    • Method Detail

      • getCodecProvider

        MorphiaCodecProvider getCodecProvider​(Datastore datastore)
        Returns the codec provider responsible for creating the codecs for the EntityModels returned by this importer.
        datastore - The datastore to use
        the provider
      • getModels

        List<EntityModel> getModels​(Mapper mapper)
        Returns the models to be introduced by this importer.
        mapper - the Mapper to use while building the EntityModels
        the models