org.springframework.data.gemfire
Class RegionAttributesFactoryBean

java.lang.Object
  extended by com.gemstone.gemfire.cache.AttributesFactory
      extended by org.springframework.data.gemfire.RegionAttributesFactoryBean
All Implemented Interfaces:
FactoryBean<RegionAttributes>, InitializingBean

public class RegionAttributesFactoryBean
extends AttributesFactory
implements FactoryBean<RegionAttributes>, InitializingBean

Spring-friendly bean for creating RegionAttributes. Eliminates the need of using a XML 'factory-method' tag.

Author:
Costin Leau

Field Summary
 
Fields inherited from class com.gemstone.gemfire.cache.AttributesFactory
DEFAULT_DISK_SYNCHRONOUS
 
Constructor Summary
RegionAttributesFactoryBean()
           
 
Method Summary
 void afterPropertiesSet()
           
 RegionAttributes getObject()
           
 Class<?> getObjectType()
           
 boolean isSingleton()
           
 void setDiskDirs(File[] diskDirs)
           
 void setDiskSizes(int[] sizes)
          Sets the sizes (in megabytes) for each disk directory.
 
Methods inherited from class com.gemstone.gemfire.cache.AttributesFactory
addCacheListener, create, createRegionAttributes, initCacheListeners, setBucketRegion, setCacheListener, setCacheLoader, setCacheWriter, setCloningEnabled, setConcurrencyLevel, setCustomEntryIdleTimeout, setCustomEntryTimeToLive, setDataPolicy, 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
 

Constructor Detail

RegionAttributesFactoryBean

public RegionAttributesFactoryBean()
Method Detail

afterPropertiesSet

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

getObject

public RegionAttributes getObject()
                           throws Exception
Specified by:
getObject in interface FactoryBean<RegionAttributes>
Throws:
Exception

getObjectType

public Class<?> getObjectType()
Specified by:
getObjectType in interface FactoryBean<RegionAttributes>

isSingleton

public boolean isSingleton()
Specified by:
isSingleton in interface FactoryBean<RegionAttributes>

setDiskDirs

public void setDiskDirs(File[] diskDirs)
Overrides:
setDiskDirs in class AttributesFactory

setDiskSizes

public void setDiskSizes(int[] sizes)
Sets the sizes (in megabytes) for each disk directory. Used only disk directories are specified.

Parameters:
sizes -


Copyright © 2010 SpringSource, a division of VMware. All Rights Reserved.