public class GemfireDataSourcePostProcessor extends Object implements BeanFactoryAware, BeanPostProcessor
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.Region
,
ClientCache
,
ClientRegionFactory
,
ClientRegionShortcut
,
Function
,
GetRegionsFunction
,
BeanFactoryPostProcessor
,
ConfigurableListableBeanFactory
,
ListRegionsOnServerFunction
,
GemfireOnServersFunctionTemplate
,
ListRegionsOnServerFunction
Constructor and Description |
---|
GemfireDataSourcePostProcessor() |
Modifier and Type | Method and Description |
---|---|
Optional<ConfigurableBeanFactory> |
getBeanFactory()
Returns a reference to the configured
ConfigurableBeanFactory . |
Optional<org.apache.geode.cache.client.ClientRegionShortcut> |
getClientRegionShortcut()
Returns the data policy used to configure the client
Region . |
protected org.slf4j.Logger |
getLogger()
Returns a reference to the configured
Logger used to log messages. |
Object |
postProcessAfterInitialization(Object bean,
String beanName) |
protected org.apache.geode.cache.client.ClientRegionShortcut |
resolveClientRegionShortcut()
Resolves the
ClientRegionShortcut used to configure and create client Regions . |
void |
setBeanFactory(BeanFactory beanFactory)
Set a reference to the
BeanFactory . |
void |
setClientRegionShortcut(org.apache.geode.cache.client.ClientRegionShortcut clientRegionShortcut)
Set the data policy used to configure the client
Region . |
GemfireDataSourcePostProcessor |
using(BeanFactory beanFactory) |
GemfireDataSourcePostProcessor |
using(org.apache.geode.cache.client.ClientRegionShortcut clientRegionShortcut) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
postProcessBeforeInitialization
public void setBeanFactory(BeanFactory beanFactory) throws BeansException
BeanFactory
.setBeanFactory
in interface BeanFactoryAware
beanFactory
- reference to the BeanFactory
.BeansException
- if the BeanFactory
is not a ConfigurableBeanFactory
.ConfigurableBeanFactory
,
BeanFactory
public Optional<ConfigurableBeanFactory> getBeanFactory()
ConfigurableBeanFactory
.ConfigurableBeanFactory
.ConfigurableBeanFactory
public void setClientRegionShortcut(org.apache.geode.cache.client.ClientRegionShortcut clientRegionShortcut)
Region
.clientRegionShortcut
- ClientRegionShortcut
used to define the data policy
used by the client Region
.ClientRegionShortcut
public Optional<org.apache.geode.cache.client.ClientRegionShortcut> getClientRegionShortcut()
Region
.ClientRegionShortcut
used to define the data policy
used by the client Region
.ClientRegionShortcut
,
Optional
protected org.apache.geode.cache.client.ClientRegionShortcut resolveClientRegionShortcut()
ClientRegionShortcut
used to configure and create client Regions
.ClientRegionShortcut
.ClientRegionShortcut
,
getClientRegionShortcut()
protected org.slf4j.Logger getLogger()
Logger
used to log messages.Logger
.Logger
@Nullable public Object postProcessAfterInitialization(Object bean, String beanName) throws BeansException
postProcessAfterInitialization
in interface BeanPostProcessor
BeansException
public GemfireDataSourcePostProcessor using(org.apache.geode.cache.client.ClientRegionShortcut clientRegionShortcut)
public GemfireDataSourcePostProcessor using(BeanFactory beanFactory)
Copyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.