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:
-
Region
ClientCache
ClientRegionFactory
ClientRegionShortcut
Function
GetRegionsFunction
BeanFactoryPostProcessor
ConfigurableListableBeanFactory
ListRegionsOnServerFunction
GemfireOnServersFunctionTemplate
ListRegionsOnServerFunction
-
Constructor Summary
-
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.Logger
Returns a reference to the configuredLogger
used to log messages.postProcessAfterInitialization
(Object bean, String beanName) protected org.apache.geode.cache.client.ClientRegionShortcut
Resolves theClientRegionShortcut
used to configure and create clientRegions
.void
setBeanFactory
(org.springframework.beans.factory.BeanFactory beanFactory) Set a reference to theBeanFactory
.void
setClientRegionShortcut
(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, wait
Methods 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:
setBeanFactory
in interfaceorg.springframework.beans.factory.BeanFactoryAware
- Parameters:
beanFactory
- reference to theBeanFactory
.- Throws:
org.springframework.beans.BeansException
- if theBeanFactory
is not aConfigurableBeanFactory
.- See Also:
-
ConfigurableBeanFactory
BeanFactory
-
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
-ClientRegionShortcut
used 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
ClientRegionShortcut
used to define the data policy used by the clientRegion
. - See Also:
-
ClientRegionShortcut
Optional
-
resolveClientRegionShortcut
protected org.apache.geode.cache.client.ClientRegionShortcut resolveClientRegionShortcut()Resolves theClientRegionShortcut
used to configure and create clientRegions
.- Returns:
- the resolved
ClientRegionShortcut
. - See Also:
-
ClientRegionShortcut
getClientRegionShortcut()
-
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 org.springframework.beans.BeansException - Specified by:
postProcessAfterInitialization
in 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)
-