Package org.springframework.data.gemfire
Class ConfigurableRegionFactoryBean<K,V>
java.lang.Object
org.springframework.data.gemfire.support.AbstractFactoryBeanSupport<Region<K,V>>
org.springframework.data.gemfire.ResolvableRegionFactoryBean<K,V>
org.springframework.data.gemfire.ConfigurableRegionFactoryBean<K,V>
- All Implemented Interfaces:
Aware
,BeanClassLoaderAware
,BeanFactoryAware
,BeanNameAware
,FactoryBean<Region<K,
,V>> 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
- Author:
- John Blum
- See Also:
-
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
Constructors -
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, getLog, getOptionalLog, isDebugLoggingEnabled, isErrorLoggingEnabled, isInfoLoggingEnabled, isSingleton, isWarnLoggingEnabled, logDebug, logDebug, logError, logError, logInfo, logInfo, logWarning, logWarning, newLog, setBeanClassLoader, setBeanFactory, setBeanName
-
Constructor Details
-
ConfigurableRegionFactoryBean
public ConfigurableRegionFactoryBean()
-
-
Method Details
-
afterPropertiesSet
Applies allRegionConfigurers
.- Specified by:
afterPropertiesSet
in interfaceInitializingBean
- Overrides:
afterPropertiesSet
in classResolvableRegionFactoryBean<K,
V> - Throws:
Exception
- if initialization fails.- See Also:
-
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:
-