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 |
OBJECT_TYPE_ATTRIBUTE
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 Optional<org.apache.geode.cache.GemFireCache> |
getCache()
Returns an
Optional reference to the configured GemFireCache . |
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 |
setCache(org.apache.geode.cache.GemFireCache cache)
Set a reference to the
GemFireCache . |
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, setRepositoryFragments
public 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 ApplicationContextAware
applicationContext
- reference to the Spring ApplicationContext
.BeansException
ApplicationContextAware.setApplicationContext(ApplicationContext)
,
ApplicationContext
protected Optional<ApplicationContext> getApplicationContext()
Optional
reference to the configured Spring ApplicationContext
.Optional
reference to the configured Spring ApplicationContext
.ApplicationContext
,
Optional
public void setCache(org.apache.geode.cache.GemFireCache cache)
GemFireCache
.cache
- reference to the GemFireCache
.GemFireCache
protected Optional<org.apache.geode.cache.GemFireCache> getCache()
Optional
reference to the configured GemFireCache
.Optional
reference to the configured GemFireCache
.GemFireCache
@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
,
MappingContext
protected 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
,
Iterable
protected RepositoryFactorySupport createRepositoryFactory()
RepositoryFactorySupport
that interfaces with GemFire.createRepositoryFactory
in class RepositoryFactoryBeanSupport<T extends Repository<S,ID>,S,ID>
RepositoryFactoryBeanSupport.createRepositoryFactory()
,
RepositoryFactorySupport
public void afterPropertiesSet()
afterPropertiesSet
in interface InitializingBean
afterPropertiesSet
in class RepositoryFactoryBeanSupport<T extends Repository<S,ID>,S,ID>
Copyright © 2011–2019 Pivotal Software, Inc.. All rights reserved.