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 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.
        Parameters:
        datastore - 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 the EntityModels
        Returns:
        the models