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,
ConversionService conversionService)
|
Modifier and Type | Method and Description |
---|---|
RepositoryInvoker |
getInvokerFor(Class<?> domainType)
Returns the
RepositoryInvoker for a repository managing the given domain type. |
public DefaultRepositoryInvokerFactory(Repositories repositories, ConversionService conversionService)
repositories
- must not be null.conversionService
- must not be null.public RepositoryInvoker getInvokerFor(Class<?> domainType)
RepositoryInvokerFactory
RepositoryInvoker
for a repository managing the given domain type.getInvokerFor
in interface RepositoryInvokerFactory
domainType
- must not be null.Copyright © 2011-2014-2014 Pivotal Software, Inc.. All Rights Reserved.