Class GemfireDataSourcePostProcessor
java.lang.Object
org.springframework.data.gemfire.client.GemfireDataSourcePostProcessor
- All Implemented Interfaces:
Aware
,BeanFactoryAware
,BeanPostProcessor
public class GemfireDataSourcePostProcessor
extends Object
implements BeanFactoryAware, 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
- Author:
- David Turanski, John Blum
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns a reference to the configuredConfigurableBeanFactory
.Returns the data policy used to configure the clientRegion
.protected org.slf4j.Logger
Returns a reference to the configuredLogger
used to log messages.postProcessAfterInitialization
(Object bean, String beanName) protected ClientRegionShortcut
Resolves theClientRegionShortcut
used to configure and create clientRegions
.void
setBeanFactory
(BeanFactory beanFactory) Set a reference to theBeanFactory
.void
setClientRegionShortcut
(ClientRegionShortcut clientRegionShortcut) Set the data policy used to configure the clientRegion
.using
(ClientRegionShortcut clientRegionShortcut) using
(BeanFactory beanFactory) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.beans.factory.config.BeanPostProcessor
postProcessBeforeInitialization
-
Constructor Details
-
GemfireDataSourcePostProcessor
public GemfireDataSourcePostProcessor()
-
-
Method Details
-
setBeanFactory
Set a reference to theBeanFactory
.- Specified by:
setBeanFactory
in interfaceBeanFactoryAware
- Parameters:
beanFactory
- reference to theBeanFactory
.- Throws:
BeansException
- if theBeanFactory
is not aConfigurableBeanFactory
.- See Also:
-
getBeanFactory
Returns a reference to the configuredConfigurableBeanFactory
.- Returns:
- a reference to the configured
ConfigurableBeanFactory
. - See Also:
-
setClientRegionShortcut
Set the data policy used to configure the clientRegion
.- Parameters:
clientRegionShortcut
-ClientRegionShortcut
used to define the data policy used by the clientRegion
.- See Also:
-
getClientRegionShortcut
Returns the data policy used to configure the clientRegion
.- Returns:
- the configured
ClientRegionShortcut
used to define the data policy used by the clientRegion
. - See Also:
-
resolveClientRegionShortcut
Resolves theClientRegionShortcut
used to configure and create clientRegions
.- Returns:
- the resolved
ClientRegionShortcut
. - See Also:
-
getLogger
protected org.slf4j.Logger getLogger()Returns a reference to the configuredLogger
used to log messages.- Returns:
- a reference to the configured
Logger
. - See Also:
-
Logger
-
postProcessAfterInitialization
@Nullable public Object postProcessAfterInitialization(Object bean, String beanName) throws BeansException - Specified by:
postProcessAfterInitialization
in interfaceBeanPostProcessor
- Throws:
BeansException
-
using
-
using
-