Interface DocumentRepositoryProducer


  • public interface DocumentRepositoryProducer
    The producer of Repository
    • Method Detail

      • get

        <T,​K,​R extends Repository<T,​K>> R get​(Class<R> repositoryClass,
                                                                DocumentTemplate template)
        Produces a Repository class from repository class and DocumentTemplate
        Type Parameters:
        T - the entity of repository
        K - the K of the entity
        R - the repository type
        Parameters:
        repositoryClass - the repository class
        template - the template
        Returns:
        a Repository interface
        Throws:
        NullPointerException - when there is null parameter