public class GemFireCacheTypeAwareRegionFactoryBean<K,V> extends RegionLookupFactoryBean<K,V> implements BeanFactoryAware
GemFireCacheTypeAwareRegionFactoryBean class is a smart Spring FactoryBean that knows how to
create a client or server Region depending on whether the GemFireCache is
a ClientCache or a peer Cache.BeanFactory,
BeanFactoryAware,
FactoryBean,
RegionLookupFactoryBean,
GemFireCache,
Regionlog| Constructor and Description |
|---|
GemFireCacheTypeAwareRegionFactoryBean() |
| Modifier and Type | Method and Description |
|---|---|
protected BeanFactory |
getBeanFactory() |
protected com.gemstone.gemfire.cache.client.ClientRegionShortcut |
getClientRegionShortcut() |
protected Boolean |
getClose() |
protected com.gemstone.gemfire.cache.DataPolicy |
getDataPolicy() |
protected Class<K> |
getKeyConstraint() |
protected String |
getPoolName() |
protected com.gemstone.gemfire.cache.RegionAttributes<K,V> |
getRegionAttributes() |
protected com.gemstone.gemfire.cache.RegionShortcut |
getServerRegionShortcut() |
protected Class<V> |
getValueConstraint() |
protected boolean |
isClose() |
com.gemstone.gemfire.cache.Region<K,V> |
lookupRegion(com.gemstone.gemfire.cache.GemFireCache gemfireCache,
String regionName)
Method to perform a lookup when the named
Region does not exist. |
protected com.gemstone.gemfire.cache.Region<K,V> |
newClientRegion(com.gemstone.gemfire.cache.GemFireCache gemfireCache,
String regionName)
Constructs a new client
Region using the ClientRegionFactoryBean. |
protected com.gemstone.gemfire.cache.Region<K,V> |
newServerRegion(com.gemstone.gemfire.cache.GemFireCache gemfireCache,
String regionName)
Constructs a new server
Region using the GenericRegionFactoryBean. |
void |
setAttributes(com.gemstone.gemfire.cache.RegionAttributes<K,V> regionAttributes) |
void |
setBeanFactory(BeanFactory beanFactory) |
void |
setClientRegionShortcut(com.gemstone.gemfire.cache.client.ClientRegionShortcut clientRegionShortcut) |
void |
setClose(Boolean close) |
void |
setDataPolicy(com.gemstone.gemfire.cache.DataPolicy dataPolicy) |
void |
setKeyConstraint(Class<K> keyConstraint) |
void |
setPoolName(String poolName) |
void |
setServerRegionShortcut(com.gemstone.gemfire.cache.RegionShortcut shortcut) |
void |
setValueConstraint(Class<V> valueConstraint) |
afterPropertiesSet, getLookupEnabled, getObject, getObjectType, getParent, getRegion, isSingleton, lookupFallback, resolveRegionName, setBeanName, setCache, setLookupEnabled, setName, setParent, setRegionNamepublic GemFireCacheTypeAwareRegionFactoryBean()
public com.gemstone.gemfire.cache.Region<K,V> lookupRegion(com.gemstone.gemfire.cache.GemFireCache gemfireCache, String regionName) throws Exception
RegionLookupFactoryBeanRegion does not exist. By default, this implementation
throws an exception.lookupRegion in class RegionLookupFactoryBean<K,V>gemfireCache - reference to the GemFire cache.regionName - name of the GemFire Region.Region in the GemFire cache with the given name.BeanInitializationException - if the lookup operation fails.ExceptionRegionprotected com.gemstone.gemfire.cache.Region<K,V> newClientRegion(com.gemstone.gemfire.cache.GemFireCache gemfireCache, String regionName) throws Exception
Region using the ClientRegionFactoryBean.gemfireCache - reference to the GemFireCache used to create/initialize the factory
used to create the client Region.regionName - name given to the client Region.Region with the given regionName.Exception - if the client Region could not be created.ClientRegionFactoryBean,
GemFireCache,
Regionprotected com.gemstone.gemfire.cache.Region<K,V> newServerRegion(com.gemstone.gemfire.cache.GemFireCache gemfireCache, String regionName) throws Exception
Region using the GenericRegionFactoryBean.gemfireCache - reference to the GemFireCache used to create/initialize the factory
used to create the server Region.regionName - name given to the server Region.Region with the given regionName.Exception - if the server Region could not be created.GenericRegionFactoryBean,
GemFireCache,
Regionpublic void setAttributes(com.gemstone.gemfire.cache.RegionAttributes<K,V> regionAttributes)
protected com.gemstone.gemfire.cache.RegionAttributes<K,V> getRegionAttributes()
public void setBeanFactory(BeanFactory beanFactory) throws BeansException
setBeanFactory in interface BeanFactoryAwareBeansExceptionprotected BeanFactory getBeanFactory()
public void setClientRegionShortcut(com.gemstone.gemfire.cache.client.ClientRegionShortcut clientRegionShortcut)
protected com.gemstone.gemfire.cache.client.ClientRegionShortcut getClientRegionShortcut()
public void setClose(Boolean close)
protected Boolean getClose()
protected boolean isClose()
public void setDataPolicy(com.gemstone.gemfire.cache.DataPolicy dataPolicy)
protected com.gemstone.gemfire.cache.DataPolicy getDataPolicy()
public void setPoolName(String poolName)
protected String getPoolName()
public void setServerRegionShortcut(com.gemstone.gemfire.cache.RegionShortcut shortcut)
protected com.gemstone.gemfire.cache.RegionShortcut getServerRegionShortcut()
Copyright © 2011–2017 Pivotal Software, Inc.. All rights reserved.