public class DefaultRepositoryInvokerFactory extends Object implements RepositoryInvokerFactory
RepositoryInvokerFactory to inspect the requested repository type and create a
matching RepositoryInvoker that suits the repository best. That means, the more concrete the base interface
of the repository is, the more concrete will the actual invoker become - which means it will favor concrete method
invocations over reflection ones.| Constructor and Description |
|---|
DefaultRepositoryInvokerFactory(Repositories repositories)
Creates a new
DefaultRepositoryInvokerFactory for the given Repositories. |
DefaultRepositoryInvokerFactory(Repositories repositories,
ConversionService conversionService)
|
| Modifier and Type | Method and Description |
|---|---|
protected RepositoryInvoker |
createInvoker(RepositoryInformation information,
Object repository) |
RepositoryInvoker |
getInvokerFor(Class<?> domainType)
Returns the
RepositoryInvoker for a repository managing the given domain type. |
public DefaultRepositoryInvokerFactory(Repositories repositories)
DefaultRepositoryInvokerFactory for the given Repositories.repositories - must not be null.public DefaultRepositoryInvokerFactory(Repositories repositories, ConversionService conversionService)
repositories - must not be null.conversionService - must not be null.public RepositoryInvoker getInvokerFor(Class<?> domainType)
RepositoryInvokerFactoryRepositoryInvoker for a repository managing the given domain type.getInvokerFor in interface RepositoryInvokerFactorydomainType - must not be null.protected RepositoryInvoker createInvoker(RepositoryInformation information, Object repository)
Copyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.