Spring Data for VMware GemFire
Class GemfireDataSourcePostProcessor
java.lang.Object
org.springframework.data.gemfire.client.GemfireDataSourcePostProcessor
- All Implemented Interfaces:
org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanFactoryAware,org.springframework.beans.factory.config.BeanPostProcessor
public class GemfireDataSourcePostProcessor
extends Object
implements org.springframework.beans.factory.BeanFactoryAware, org.springframework.beans.factory.config.BeanPostProcessor
A Spring
BeanFactoryPostProcessor used to register a Client Region beans for each Region accessible to
an Apache Geode or Pivotal GemFire DataSource. If the Region is already defined, the bean definition
will not be overridden.- Since:
- 1.2.0
- See Also:
-
RegionClientCacheClientRegionFactoryClientRegionShortcutFunctionGetRegionsFunctionBeanFactoryPostProcessorConfigurableListableBeanFactoryListRegionsOnServerFunctionGemfireOnServersFunctionTemplateListRegionsOnServerFunction
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionOptional<org.springframework.beans.factory.config.ConfigurableBeanFactory>Returns a reference to the configuredConfigurableBeanFactory.Optional<org.apache.geode.cache.client.ClientRegionShortcut>Returns the data policy used to configure the clientRegion.protected org.slf4j.LoggerReturns a reference to the configuredLoggerused to log messages.postProcessAfterInitialization(Object bean, String beanName) protected org.apache.geode.cache.client.ClientRegionShortcutResolves theClientRegionShortcutused to configure and create clientRegions.voidsetBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) Set a reference to theBeanFactory.voidsetClientRegionShortcut(org.apache.geode.cache.client.ClientRegionShortcut clientRegionShortcut) Set the data policy used to configure the clientRegion.using(org.apache.geode.cache.client.ClientRegionShortcut clientRegionShortcut) using(org.springframework.beans.factory.BeanFactory beanFactory) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.beans.factory.config.BeanPostProcessor
postProcessBeforeInitialization
-
Constructor Details
-
GemfireDataSourcePostProcessor
public GemfireDataSourcePostProcessor()
-
-
Method Details
-
setBeanFactory
public void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) throws org.springframework.beans.BeansException Set a reference to theBeanFactory.- Specified by:
setBeanFactoryin interfaceorg.springframework.beans.factory.BeanFactoryAware- Parameters:
beanFactory- reference to theBeanFactory.- Throws:
org.springframework.beans.BeansException- if theBeanFactoryis not aConfigurableBeanFactory.- See Also:
-
ConfigurableBeanFactoryBeanFactory
-
getBeanFactory
Returns a reference to the configuredConfigurableBeanFactory.- Returns:
- a reference to the configured
ConfigurableBeanFactory. - See Also:
-
ConfigurableBeanFactory
-
setClientRegionShortcut
public void setClientRegionShortcut(org.apache.geode.cache.client.ClientRegionShortcut clientRegionShortcut) Set the data policy used to configure the clientRegion.- Parameters:
clientRegionShortcut-ClientRegionShortcutused to define the data policy used by the clientRegion.- See Also:
-
ClientRegionShortcut
-
getClientRegionShortcut
Returns the data policy used to configure the clientRegion.- Returns:
- the configured
ClientRegionShortcutused to define the data policy used by the clientRegion. - See Also:
-
ClientRegionShortcutOptional
-
resolveClientRegionShortcut
protected org.apache.geode.cache.client.ClientRegionShortcut resolveClientRegionShortcut()Resolves theClientRegionShortcutused to configure and create clientRegions.- Returns:
- the resolved
ClientRegionShortcut. - See Also:
-
ClientRegionShortcutgetClientRegionShortcut()
-
getLogger
protected org.slf4j.Logger getLogger()Returns a reference to the configuredLoggerused to log messages.- Returns:
- a reference to the configured
Logger. - See Also:
-
Logger
-
postProcessAfterInitialization
@Nullable public Object postProcessAfterInitialization(Object bean, String beanName) throws org.springframework.beans.BeansException - Specified by:
postProcessAfterInitializationin interfaceorg.springframework.beans.factory.config.BeanPostProcessor- Throws:
org.springframework.beans.BeansException
-
using
public GemfireDataSourcePostProcessor using(org.apache.geode.cache.client.ClientRegionShortcut clientRegionShortcut) -
using
public GemfireDataSourcePostProcessor using(org.springframework.beans.factory.BeanFactory beanFactory)
-