Skip to content

Commit

Permalink
DATACMNS-29 - Added getRepositoryInterface() implementation to Reposi…
Browse files Browse the repository at this point in the history
…toryConfig.

We now assume scanning for all sub-interfaces of Repository by default now. Thus concrete modules can pretty much drop the implementation of this method in their concrete config implementations in case they support picking up user's repository interfaces that extend Repository only.

From a users perspective this drops the requirement to extend a persistence technology specific interface (MongoRepository, JpaRepository and the like).
  • Loading branch information
odrotbohm committed May 12, 2011
1 parent 369af0a commit 88bad20
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
import java.util.HashSet;
import java.util.Set;

import org.springframework.data.repository.Repository;
import org.springframework.data.repository.query.QueryLookupStrategy.Key;
import org.springframework.util.Assert;
import org.springframework.util.StringUtils;
Expand Down Expand Up @@ -186,6 +187,14 @@ public Iterable<T> getSingleRepositoryConfigInformations() {

return infos;
}

/*
* (non-Javadoc)
* @see org.springframework.data.repository.config.GlobalRepositoryConfigInformation#getRepositoryBaseInterface()
*/
public Class<?> getRepositoryBaseInterface() {
return Repository.class;
}


private Collection<Element> getRepositoryElements() {
Expand Down

0 comments on commit 88bad20

Please sign in to comment.