org.springframework.data.gemfire.client
Class ClientRegionFactoryBean<K,V>

java.lang.Object
  extended by org.springframework.data.gemfire.RegionLookupFactoryBean<K,V>
      extended by org.springframework.data.gemfire.RegionFactoryBean<K,V>
          extended by org.springframework.data.gemfire.client.ClientRegionFactoryBean<K,V>
All Implemented Interfaces:
BeanFactoryAware, BeanNameAware, DisposableBean, FactoryBean<Region<K,V>>, InitializingBean

public class ClientRegionFactoryBean<K,V>
extends RegionFactoryBean<K,V>
implements BeanFactoryAware

Client extension for GemFire regions.

Author:
Costin Leau

Field Summary
 
Fields inherited from class org.springframework.data.gemfire.RegionFactoryBean
log
 
Constructor Summary
ClientRegionFactoryBean()
           
 
Method Summary
 void destroy()
           
protected  void postProcess(AttributesFactory<K,V> attrFactory)
          Post-process the attribute factory object used for configuring the region of this factory bean during the initialization process.
protected  void postProcess(Region<K,V> region)
          Post-process the region object for this factory bean during the initialization process.
 void setBeanFactory(BeanFactory beanFactory)
           
 void setInterests(Interest<K>[] interests)
          Set the interests for this client region.
 void setPool(Pool pool)
          Sets the pool used by this client.
 void setPoolName(String poolName)
          Sets the pool name used by this client.
 
Methods inherited from class org.springframework.data.gemfire.RegionFactoryBean
afterPropertiesSet, lookupFallback, setAttributes, setCacheListeners, setCacheLoader, setCacheWriter, setClose, setDataPolicy, setDestroy, setScope, setSnapshot
 
Methods inherited from class org.springframework.data.gemfire.RegionLookupFactoryBean
getObject, getObjectType, isSingleton, setBeanName, setCache, setName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClientRegionFactoryBean

public ClientRegionFactoryBean()
Method Detail

postProcess

protected void postProcess(Region<K,V> region)
Description copied from class: RegionFactoryBean
Post-process the region object for this factory bean during the initialization process. The object is already initialized and configured by the factory bean before this method is invoked.

Overrides:
postProcess in class RegionFactoryBean<K,V>

postProcess

protected void postProcess(AttributesFactory<K,V> attrFactory)
Description copied from class: RegionFactoryBean
Post-process the attribute factory object used for configuring the region of this factory bean during the initialization process. The object is already initialized and configured by the factory bean before this method is invoked.

Overrides:
postProcess in class RegionFactoryBean<K,V>
Parameters:
attrFactory - attribute factory

destroy

public void destroy()
             throws Exception
Specified by:
destroy in interface DisposableBean
Overrides:
destroy in class RegionFactoryBean<K,V>
Throws:
Exception

setBeanFactory

public void setBeanFactory(BeanFactory beanFactory)
                    throws BeansException
Specified by:
setBeanFactory in interface BeanFactoryAware
Throws:
BeansException

setInterests

public void setInterests(Interest<K>[] interests)
Set the interests for this client region. Both key and regex interest are supported.

Parameters:
interests - the interests to set

setPoolName

public void setPoolName(String poolName)
Sets the pool name used by this client.

Parameters:
poolName -

setPool

public void setPool(Pool pool)
Sets the pool used by this client.

Parameters:
pool -


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