Package org.springframework.data.gemfire
Class ConfigurableRegionFactoryBean<K,V>
java.lang.Object
org.springframework.data.gemfire.support.AbstractFactoryBeanSupport<org.apache.geode.cache.Region<K,V>>
org.springframework.data.gemfire.ResolvableRegionFactoryBean<K,V>
org.springframework.data.gemfire.ConfigurableRegionFactoryBean<K,V>
- All Implemented Interfaces:
org.springframework.beans.factory.Aware
,org.springframework.beans.factory.BeanClassLoaderAware
,org.springframework.beans.factory.BeanFactoryAware
,org.springframework.beans.factory.BeanNameAware
,org.springframework.beans.factory.FactoryBean<org.apache.geode.cache.Region<K,
,V>> org.springframework.beans.factory.InitializingBean
- Direct Known Subclasses:
ClientRegionFactoryBean
,PeerRegionFactoryBean
ConfigurableRegionFactoryBean
is an abstract base class encapsulating functionality common
to all configurable Region
FactoryBeans
.
A configurable Region
FactoryBean
includes all FactoryBeans
that create a Region
and allow additional configuration to be applied via a RegionConfigurer
.- Since:
- 2.1.0
- See Also:
-
Region
FactoryBean
ResolvableRegionFactoryBean
RegionConfigurer
-
Field Summary
Fields inherited from class org.springframework.data.gemfire.ResolvableRegionFactoryBean
CREATING_REGION_LOG_MESSAGE, REGION_FOUND_LOG_MESSAGE, REGION_NOT_FOUND_ERROR_MESSAGE
Fields inherited from class org.springframework.data.gemfire.support.AbstractFactoryBeanSupport
DEFAULT_SINGLETON
Fields inherited from interface org.springframework.beans.factory.FactoryBean
OBJECT_TYPE_ATTRIBUTE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Applies allRegionConfigurers
.protected void
applyRegionConfigurers
(String regionName) Null-safe operation to apply the compositeRegionConfigurers
to thisConfigurableRegionFactoryBean
.protected void
applyRegionConfigurers
(String regionName, Iterable<RegionConfigurer> regionConfigurers) Null-safe operation to apply the givenIterable
ofRegionConfigurers
to thisConfigurableRegionFactoryBean
.protected void
applyRegionConfigurers
(String regionName, RegionConfigurer... regionConfigurers) Null-safe operation to apply the given array ofRegionConfigurers
to thisConfigurableRegionFactoryBean
.protected RegionConfigurer
Returns a reference to the CompositeRegionConfigurer
used to apply additional configuration to thisClientRegionFactoryBean
on Spring container initialization.void
setRegionConfigurers
(List<RegionConfigurer> regionConfigurers) Null-safe operation to set anIterable
ofRegionConfigurers
used to apply additional configuration to thisClientRegionFactoryBean
when using Annotation-based configuration.void
setRegionConfigurers
(RegionConfigurer... regionConfigurers) Null-safe operation to set an array ofRegionConfigurers
used to apply additional configuration to thisClientRegionFactoryBean
when using Annotation-based configuration.Methods inherited from class org.springframework.data.gemfire.ResolvableRegionFactoryBean
createRegion, getCache, getLookupEnabled, getObject, getObjectType, getParent, getRegion, isLookupEnabled, loadSnapshot, postProcess, resolveRegionName, setCache, setLookupEnabled, setName, setParent, setRegion, setRegionName, setSnapshot
Methods inherited from class org.springframework.data.gemfire.support.AbstractFactoryBeanSupport
getBeanClassLoader, getBeanFactory, getBeanName, getLogger, getOptionalLogger, isDebugLoggingEnabled, isErrorLoggingEnabled, isInfoLoggingEnabled, isSingleton, isWarnLoggingEnabled, logDebug, logDebug, logError, logError, logInfo, logInfo, logWarning, logWarning, newLogger, setBeanClassLoader, setBeanFactory, setBeanName
-
Constructor Details
-
ConfigurableRegionFactoryBean
public ConfigurableRegionFactoryBean()
-
-
Method Details
-
afterPropertiesSet
Applies allRegionConfigurers
.- Specified by:
afterPropertiesSet
in interfaceorg.springframework.beans.factory.InitializingBean
- Overrides:
afterPropertiesSet
in classResolvableRegionFactoryBean<K,
V> - Throws:
Exception
- if initialization fails.- See Also:
-
InitializingBean.afterPropertiesSet()
ResolvableRegionFactoryBean.createRegion(GemFireCache, String)
-
getCompositeRegionConfigurer
Returns a reference to the CompositeRegionConfigurer
used to apply additional configuration to thisClientRegionFactoryBean
on Spring container initialization.- Returns:
- the Composite
RegionConfigurer
. - See Also:
-
setRegionConfigurers
Null-safe operation to set an array ofRegionConfigurers
used to apply additional configuration to thisClientRegionFactoryBean
when using Annotation-based configuration.- Parameters:
regionConfigurers
- array ofRegionConfigurers
used to apply additional configuration to thisClientRegionFactoryBean
.- See Also:
-
setRegionConfigurers
Null-safe operation to set anIterable
ofRegionConfigurers
used to apply additional configuration to thisClientRegionFactoryBean
when using Annotation-based configuration.- Parameters:
regionConfigurers
-Iterable
ofRegionConfigurers
used to apply additional configuration to thisClientRegionFactoryBean
.- See Also:
-
applyRegionConfigurers
Null-safe operation to apply the compositeRegionConfigurers
to thisConfigurableRegionFactoryBean
.- Parameters:
regionName
-String
containing the name of theRegion
. to thisConfigurableRegionFactoryBean
.- See Also:
-
applyRegionConfigurers
Null-safe operation to apply the given array ofRegionConfigurers
to thisConfigurableRegionFactoryBean
.- Parameters:
regionName
-String
containing the name of theRegion
.regionConfigurers
- array ofRegionConfigurers
applied to thisConfigurableRegionFactoryBean
.- See Also:
-
applyRegionConfigurers
protected void applyRegionConfigurers(String regionName, Iterable<RegionConfigurer> regionConfigurers) Null-safe operation to apply the givenIterable
ofRegionConfigurers
to thisConfigurableRegionFactoryBean
.- Parameters:
regionName
-String
containing the name of theRegion
.regionConfigurers
-Iterable
ofRegionConfigurers
applied to thisConfigurableRegionFactoryBean
.- See Also:
-