public class GemfireRepositoryFactory extends RepositoryFactorySupport
RepositoryFactorySupport
implementation creating repository proxies
for Gemfire.RepositoryFactorySupport.ImplementationMethodExecutionInterceptor, RepositoryFactorySupport.QueryExecutorMethodInterceptor
Constructor and Description |
---|
GemfireRepositoryFactory(Iterable<org.apache.geode.cache.Region<?,?>> regions,
MappingContext<? extends GemfirePersistentEntity<?>,GemfirePersistentProperty> mappingContext)
Constructs a new instance of
GemfireRepositoryFactory initialized with the given collection
of configured Regions and the MappingContext . |
Modifier and Type | Method and Description |
---|---|
<T,ID> GemfireEntityInformation<T,ID> |
getEntityInformation(Class<T> domainClass) |
protected MappingContext<? extends GemfirePersistentEntity<?>,GemfirePersistentProperty> |
getMappingContext()
Returns a reference to the GemFire
MappingContext used to provide mapping meta-data
between entity types and the data store. |
protected Optional<QueryLookupStrategy> |
getQueryLookupStrategy(QueryLookupStrategy.Key key,
EvaluationContextProvider evaluationContextProvider) |
protected Regions |
getRegions()
Returns a reference to the configured, application-defined
Regions . |
protected Class<?> |
getRepositoryBaseClass(RepositoryMetadata metadata) |
protected Object |
getTargetRepository(RepositoryInformation repositoryInformation) |
protected <T extends QueryMethod> |
newQueryMethod(Method method,
RepositoryMetadata repositoryMetadata,
ProjectionFactory projectionFactory,
EvaluationContextProvider evaluationContextProvider) |
protected GemfireTemplate |
newTemplate(RepositoryMetadata repositoryMetadata)
Constructs a new instance of
GemfireTemplate initialized with the identified Region
used to back all persistent, data access operations defined by the Repository . |
addQueryCreationListener, addRepositoryProxyPostProcessor, getProjectionFactory, getQueryMethods, getRepository, getRepository, getRepository, getRepositoryFragments, getRepositoryInformation, getRepositoryMetadata, getTargetRepositoryViaReflection, getTargetRepositoryViaReflection, setBeanClassLoader, setBeanFactory, setEvaluationContextProvider, setNamedQueries, setQueryLookupStrategyKey, setRepositoryBaseClass, validate
public GemfireRepositoryFactory(@NonNull Iterable<org.apache.geode.cache.Region<?,?>> regions, @NonNull MappingContext<? extends GemfirePersistentEntity<?>,GemfirePersistentProperty> mappingContext)
GemfireRepositoryFactory
initialized with the given collection
of configured Regions
and the MappingContext
.regions
- Iterable
collection of configured Regions
used by this application;
must not be null.mappingContext
- MappingContext
used to map entities to the underlying data store,
must not be null.IllegalArgumentException
- if either Regions
or the MappingContext
is null.GemfireMappingContext
,
Regions
,
MappingContext
protected MappingContext<? extends GemfirePersistentEntity<?>,GemfirePersistentProperty> getMappingContext()
MappingContext
used to provide mapping meta-data
between entity types
and the data store.MappingContext
.GemfireMappingContext
,
MappingContext
protected Regions getRegions()
Regions
.Regions
.Regions
public <T,ID> GemfireEntityInformation<T,ID> getEntityInformation(Class<T> domainClass)
getEntityInformation
in class RepositoryFactorySupport
protected Class<?> getRepositoryBaseClass(RepositoryMetadata metadata)
getRepositoryBaseClass
in class RepositoryFactorySupport
protected Object getTargetRepository(RepositoryInformation repositoryInformation)
getTargetRepository
in class RepositoryFactorySupport
protected GemfireTemplate newTemplate(RepositoryMetadata repositoryMetadata)
GemfireTemplate
initialized with the identified Region
used to back all persistent, data access operations defined by the Repository
.repositoryMetadata
- RepositoryMetadata
containing meta-data about the Repository
.GemfireTemplate
initialized with the identified Region
.resolvePersistentEntity(Class)
,
resolveRegion(RepositoryMetadata, GemfirePersistentEntity)
,
validate(RepositoryMetadata, GemfirePersistentEntity, Region)
,
RepositoryMetadata
,
GemfireTemplate
,
Region
protected Optional<QueryLookupStrategy> getQueryLookupStrategy(QueryLookupStrategy.Key key, EvaluationContextProvider evaluationContextProvider)
getQueryLookupStrategy
in class RepositoryFactorySupport
protected <T extends QueryMethod> T newQueryMethod(Method method, RepositoryMetadata repositoryMetadata, ProjectionFactory projectionFactory, EvaluationContextProvider evaluationContextProvider)
Copyright © 2011–2018 Pivotal Software, Inc.. All rights reserved.