org.springframework.data.gemfire
Class SubRegionFactoryBean<K,V>

java.lang.Object
  extended by com.gemstone.gemfire.cache.AttributesFactory<K,V>
      extended by org.springframework.data.gemfire.SubRegionFactoryBean<K,V>
All Implemented Interfaces:
FactoryBean<com.gemstone.gemfire.cache.Region<K,V>>, InitializingBean

public class SubRegionFactoryBean<K,V>
extends com.gemstone.gemfire.cache.AttributesFactory<K,V>
implements FactoryBean<com.gemstone.gemfire.cache.Region<K,V>>, InitializingBean


Field Summary
protected  org.apache.commons.logging.Log log
           
 
Fields inherited from class com.gemstone.gemfire.cache.AttributesFactory
DEFAULT_DISK_SYNCHRONOUS
 
Constructor Summary
SubRegionFactoryBean()
           
 
Method Summary
 void afterPropertiesSet()
           
 com.gemstone.gemfire.cache.Region<K,V> getObject()
           
 Class<?> getObjectType()
           
 boolean isSingleton()
           
 void setAsyncEventQueues(Object[] asyncEventQueues)
           
 void setCacheListeners(com.gemstone.gemfire.cache.CacheListener<K,V>[] cacheListeners)
          Sets the cache listeners used for the region used by this factory.
 void setGatewaySenders(Object[] gatewaySenders)
           
 void setLookupOnly(boolean lookupOnly)
          Set to true if the subregion should already exist, e.g., specified by <lookup-region>
 void setName(String name)
          Set the bean name - the same as the subregion full path
 void setParent(com.gemstone.gemfire.cache.Region<?,?> parent)
          Set the parent Region
 void setRegionName(String regionName)
          Set the simple name of the region
 
Methods inherited from class com.gemstone.gemfire.cache.AttributesFactory
addAsyncEventQueueId, addCacheListener, addGatewaySenderId, create, createRegionAttributes, initCacheListeners, setBucketRegion, setCacheListener, setCacheLoader, setCacheWriter, setCloningEnabled, setConcurrencyChecksEnabled, setConcurrencyLevel, setCustomEntryIdleTimeout, setCustomEntryTimeToLive, setDataPolicy, setDiskDirs, setDiskDirsAndSizes, setDiskStoreName, setDiskSynchronous, setDiskWriteAttributes, setEarlyAck, setEnableAsyncConflation, setEnableBridgeConflation, setEnableConflation, setEnableGateway, setEnableSubscriptionConflation, setEnableWAN, setEntryIdleTimeout, setEntryTimeToLive, setEvictionAttributes, setGatewayHubId, setIgnoreJTA, setIndexMaintenanceSynchronous, setInitialCapacity, setKeyConstraint, setLoadFactor, setLockGrantor, setMembershipAttributes, setMirrorType, setMulticastEnabled, setPartitionAttributes, setPersistBackup, setPoolName, setPublisher, setRegionIdleTimeout, setRegionTimeToLive, setScope, setStatisticsEnabled, setSubscriptionAttributes, setValueConstraint, validateAttributes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected final org.apache.commons.logging.Log log
Constructor Detail

SubRegionFactoryBean

public SubRegionFactoryBean()
Method Detail

getObject

public com.gemstone.gemfire.cache.Region<K,V> getObject()
                                                 throws Exception
Specified by:
getObject in interface FactoryBean<com.gemstone.gemfire.cache.Region<K,V>>
Throws:
Exception

getObjectType

public Class<?> getObjectType()
Specified by:
getObjectType in interface FactoryBean<com.gemstone.gemfire.cache.Region<K,V>>

isSingleton

public boolean isSingleton()
Specified by:
isSingleton in interface FactoryBean<com.gemstone.gemfire.cache.Region<K,V>>

afterPropertiesSet

public void afterPropertiesSet()
                        throws Exception
Specified by:
afterPropertiesSet in interface InitializingBean
Throws:
Exception

setAsyncEventQueues

public void setAsyncEventQueues(Object[] asyncEventQueues)
Parameters:
asyncEventQueues - defined as Object for backward compatibility with Gemfire 6.

setCacheListeners

public void setCacheListeners(com.gemstone.gemfire.cache.CacheListener<K,V>[] cacheListeners)
Sets the cache listeners used for the region used by this factory. Used only when a new region is created.Overrides the settings specified through #setAttributes(com.gemstone.gemfire.cache.RegionAttributes).

Parameters:
cacheListeners - the cacheListeners to set on a newly created region

setGatewaySenders

public void setGatewaySenders(Object[] gatewaySenders)
Parameters:
gatewaySenders -

setLookupOnly

public void setLookupOnly(boolean lookupOnly)
Set to true if the subregion should already exist, e.g., specified by <lookup-region>

Parameters:
lookupOnly -

setName

public void setName(String name)
Set the bean name - the same as the subregion full path

Parameters:
name -

setRegionName

public void setRegionName(String regionName)
Set the simple name of the region

Parameters:
regionName -

setParent

public void setParent(com.gemstone.gemfire.cache.Region<?,?> parent)
Set the parent Region

Parameters:
parent -