public class GemfireRepositoryFactoryBean<T extends Repository<S,ID>,S,ID extends Serializable> extends RepositoryFactoryBeanSupport<T,S,ID> implements ApplicationContextAware
FactoryBean adapter for GemfireRepositoryFactory.FactoryBean,
ApplicationContext,
ApplicationContextAware,
GemfireMappingContext,
GemfirePersistentEntity,
GemfirePersistentProperty,
MappingContext,
Repository,
RepositoryFactoryBeanSupport,
RepositoryFactorySupport,
Region| Constructor and Description |
|---|
GemfireRepositoryFactoryBean(Class<? extends T> repositoryInterface)
Creates a new
GemfireRepositoryFactoryBean for the given repository interface. |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
protected RepositoryFactorySupport |
createRepositoryFactory()
Creates an instance of
RepositoryFactorySupport that interfaces with GemFire. |
protected MappingContext<? extends GemfirePersistentEntity<?>,GemfirePersistentProperty> |
getGemfireMappingContext()
Returns a reference to the Spring Data
MappingContext used to perform domain object type
to data store mappings. |
protected Iterable<com.gemstone.gemfire.cache.Region<?,?>> |
getRegions()
|
void |
setApplicationContext(ApplicationContext applicationContext)
Sets a reference to the Spring
ApplicationContext in which this object runs. |
void |
setGemfireMappingContext(MappingContext<? extends GemfirePersistentEntity<?>,GemfirePersistentProperty> mappingContext)
Configures the
MappingContext used to perform domain object type to store mappings. |
getEntityInformation, getObject, getObjectType, getPersistentEntity, getQueryMethods, getRepositoryInformation, isSingleton, setApplicationEventPublisher, setBeanClassLoader, setBeanFactory, setCustomImplementation, setEvaluationContextProvider, setLazyInit, setMappingContext, setNamedQueries, setQueryLookupStrategyKey, setRepositoryBaseClasspublic GemfireRepositoryFactoryBean(Class<? extends T> repositoryInterface)
GemfireRepositoryFactoryBean for the given repository interface.repositoryInterface - must not be null.public void setApplicationContext(ApplicationContext applicationContext) throws BeansException
ApplicationContext in which this object runs.setApplicationContext in interface ApplicationContextAwareapplicationContext - the Spring ApplicationContext reference.BeansExceptionApplicationContextAware.setApplicationContext(ApplicationContext),
ApplicationContextpublic void setGemfireMappingContext(MappingContext<? extends GemfirePersistentEntity<?>,GemfirePersistentProperty> mappingContext)
MappingContext used to perform domain object type to store mappings.mappingContext - the MappingContext to set.GemfireMappingContext,
MappingContextprotected MappingContext<? extends GemfirePersistentEntity<?>,GemfirePersistentProperty> getGemfireMappingContext()
MappingContext used to perform domain object type
to data store mappings.MappingContext.GemfireMappingContext,
MappingContext,
setGemfireMappingContext(MappingContext)protected Iterable<com.gemstone.gemfire.cache.Region<?,?>> getRegions()
Regions defined in the Spring ApplicationContext.protected RepositoryFactorySupport createRepositoryFactory()
RepositoryFactorySupport that interfaces with GemFire.createRepositoryFactory in class RepositoryFactoryBeanSupport<T extends Repository<S,ID>,S,ID extends Serializable>RepositoryFactoryBeanSupport.createRepositoryFactory(),
RepositoryFactorySupportpublic void afterPropertiesSet()
afterPropertiesSet in interface InitializingBeanafterPropertiesSet in class RepositoryFactoryBeanSupport<T extends Repository<S,ID>,S,ID extends Serializable>Copyright © 2011–2017 Pivotal Software, Inc.. All rights reserved.