Change the signature of a constructor.

This commit is contained in:
Jon Brisbin
2013-03-13 15:05:29 -05:00
committed by Jon Brisbin
parent 94328592f4
commit c25d05e12e
3 changed files with 4 additions and 5 deletions

View File

@@ -40,8 +40,7 @@ public class RepositoryMethodInvoker implements PagingAndSortingRepository<Objec
@SuppressWarnings({"unchecked"})
public RepositoryMethodInvoker(Object repository,
RepositoryInformation repoInfo,
RepositoryRestConfiguration config) {
RepositoryInformation repoInfo) {
this.repository = repository;
Class<?> repoType = repoInfo.getRepositoryInterface();

View File

@@ -454,7 +454,7 @@ public class RepositoryPropertyReferenceController extends AbstractRepositoryRes
this.propertyRepoInfo = repositories.getRepositoryInformationFor(propertyType);
this.entity = repositories.getPersistentEntity(propertyType);
this.propertyRepo = repositories.getRepositoryFor(entity.getType());
this.repoMethodInvoker = new RepositoryMethodInvoker(propertyRepo, propertyRepoInfo, entity);
this.repoMethodInvoker = new RepositoryMethodInvoker(propertyRepo, propertyRepoInfo);
}
}

View File

@@ -14,8 +14,8 @@ import org.springframework.data.repository.core.RepositoryInformation;
import org.springframework.data.repository.support.Repositories;
import org.springframework.data.rest.config.RepositoryRestConfiguration;
import org.springframework.data.rest.config.ResourceMapping;
import org.springframework.data.rest.repository.invoke.RepositoryMethodInvoker;
import org.springframework.data.rest.repository.PagingAndSorting;
import org.springframework.data.rest.repository.invoke.RepositoryMethodInvoker;
import org.springframework.hateoas.Link;
import org.springframework.web.util.UriComponentsBuilder;
@@ -58,7 +58,7 @@ class RepositoryRestRequest {
this.repoLink = new Link(buildUri(baseUri, repoMapping.getPath()).toString(), repoMapping.getRel());
this.repository = repositories.getRepositoryFor(repoInfo.getDomainType());
this.persistentEntity = repositories.getPersistentEntity(repoInfo.getDomainType());
this.repoMethodInvoker = new RepositoryMethodInvoker(repository, repoInfo, persistentEntity);
this.repoMethodInvoker = new RepositoryMethodInvoker(repository, repoInfo);
this.entityMapping = getResourceMapping(config, persistentEntity);
}
}