Example usage for org.springframework.data.repository.support Repositories getRepositoryInformationFor

List of usage examples for org.springframework.data.repository.support Repositories getRepositoryInformationFor

Introduction

In this page you can find the example usage for org.springframework.data.repository.support Repositories getRepositoryInformationFor.

Prototype

public Optional<RepositoryInformation> getRepositoryInformationFor(Class<?> domainClass) 

Source Link

Document

Returns the RepositoryInformation for the given domain class.

Usage

From source file:org.springsource.restbucks.support.RepositoryLinkMetadataFactory.java

public RepositoryLinkMetadataFactory(Repositories repositories) {

    Map<Class<?>, RepositoryInformation> info = new HashMap<Class<?>, RepositoryInformation>();

    for (Class<?> domainClass : repositories) {
        info.put(domainClass, repositories.getRepositoryInformationFor(domainClass));
    }/*  w w w.  j a v  a 2  s .  c  o  m*/

    this.infos = Collections.unmodifiableMap(info);
}