Change the signature of a constructor.
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user