List of usage examples for org.springframework.data.repository.core.support RepositoryFactoryInformation getQueryMethods
List<QueryMethod> getQueryMethods();
From source file:net.daum.clix.springframework.data.rest.client.repository.RestRepositories.java
/** * /** Returns the {@link QueryMethod}s contained in the repository managing * the given domain class./*from www .ja v a2s. c om*/ * * @param domainClass * must not be {@literal null}. * @return */ public List<QueryMethod> getQueryMethodsFor(Class<?> domainClass) { RepositoryFactoryInformation<Object, Serializable> information = getRepoInfoFor(domainClass); return information == null ? Collections.<QueryMethod>emptyList() : information.getQueryMethods(); }