public class GemfireRepositoryFactoryBean<T extends Repository<S,ID>,S,ID> extends RepositoryFactoryBeanSupport<T,S,ID> implements ApplicationContextAware
FactoryBean adapter for GemfireRepositoryFactory.FactoryBean,
ApplicationContext,
ApplicationContextAware,
GemfireMappingContext,
GemfirePersistentEntity,
GemfirePersistentProperty,
MappingContext,
Repository,
RepositoryFactoryBeanSupport,
RepositoryFactorySupport,
Region| Modifier and Type | Class and Description |
|---|---|
protected class |
GemfireRepositoryFactoryBean.QueryPostProcessorRegistrationOnQueryCreationListener |
| 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 Optional<ApplicationContext> |
getApplicationContext()
Returns an
Optional reference to the configured Spring ApplicationContext. |
protected MappingContext<? extends GemfirePersistentEntity<?>,GemfirePersistentProperty> |
getGemfireMappingContext()
Returns a reference to the Spring Data
MappingContext used to perform application domain object type
to data store mappings. |
protected Iterable<org.apache.geode.cache.Region<?,?>> |
getRegions()
|
void |
setApplicationContext(ApplicationContext applicationContext)
Sets a reference to the Spring
ApplicationContext. |
void |
setGemfireMappingContext(MappingContext<? extends GemfirePersistentEntity<?>,GemfirePersistentProperty> mappingContext)
Configures the
MappingContext used to perform application domain object type to data store mappings. |
getEntityInformation, getObject, getObjectType, getPersistentEntity, getQueryMethods, getRepositoryInformation, isSingleton, setApplicationEventPublisher, setBeanClassLoader, setBeanFactory, setCustomImplementation, setEvaluationContextProvider, setLazyInit, setMappingContext, setNamedQueries, setQueryLookupStrategyKey, setRepositoryBaseClass, setRepositoryFragmentspublic GemfireRepositoryFactoryBean(Class<? extends T> repositoryInterface)
GemfireRepositoryFactoryBean for the given repository interface.repositoryInterface - must not be null.public void setApplicationContext(ApplicationContext applicationContext) throws BeansException
ApplicationContext.setApplicationContext in interface ApplicationContextAwareapplicationContext - reference to the Spring ApplicationContext.BeansExceptionApplicationContextAware.setApplicationContext(ApplicationContext),
ApplicationContextprotected Optional<ApplicationContext> getApplicationContext()
Optional reference to the configured Spring ApplicationContext.Optional reference to the configured Spring ApplicationContext.ApplicationContext,
Optional@Autowired(required=false) public void setGemfireMappingContext(MappingContext<? extends GemfirePersistentEntity<?>,GemfirePersistentProperty> mappingContext)
MappingContext used to perform application domain object type to data store mappings.mappingContext - MappingContext to configure.GemfireMappingContext,
MappingContextprotected MappingContext<? extends GemfirePersistentEntity<?>,GemfirePersistentProperty> getGemfireMappingContext()
MappingContext used to perform application domain object type
to data store mappings.MappingContext.GemfireMappingContext,
MappingContext,
setGemfireMappingContext(MappingContext)protected Iterable<org.apache.geode.cache.Region<?,?>> getRegions()
Regions defined in the Spring ApplicationContext.Region,
Iterableprotected RepositoryFactorySupport createRepositoryFactory()
RepositoryFactorySupport that interfaces with GemFire.createRepositoryFactory in class RepositoryFactoryBeanSupport<T extends Repository<S,ID>,S,ID>RepositoryFactoryBeanSupport.createRepositoryFactory(),
RepositoryFactorySupportpublic void afterPropertiesSet()
afterPropertiesSet in interface InitializingBeanafterPropertiesSet in class RepositoryFactoryBeanSupport<T extends Repository<S,ID>,S,ID>Copyright © 2011–2018 Pivotal Software, Inc.. All rights reserved.