public class GemfireDataSourcePostProcessor extends Object implements BeanFactoryAware, BeanPostProcessor
BeanPostProcessor used to register a ClientCache Region beans
for each Region accessible to an Apache Geode DataSource. If the Region is already
defined as a bean, then the existing bean definition will not be overridden.Region,
ClientCache,
ClientRegionFactory,
GetRegionsFunction,
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 create and configure 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, waitpostProcessBeforeInitializationpublic void setBeanFactory(@NonNull BeanFactory beanFactory) throws BeansException
BeanFactory.setBeanFactory in interface BeanFactoryAwarebeanFactory - reference to the BeanFactory.BeansException - if the BeanFactory is not a ConfigurableBeanFactory.ConfigurableBeanFactory,
BeanFactorypublic Optional<ConfigurableBeanFactory> getBeanFactory()
ConfigurableBeanFactory.ConfigurableBeanFactory.ConfigurableBeanFactorypublic void setClientRegionShortcut(@Nullable org.apache.geode.cache.client.ClientRegionShortcut clientRegionShortcut)
Region.clientRegionShortcut - ClientRegionShortcut used to define the data policy
used by the client Region.ClientRegionShortcutpublic Optional<org.apache.geode.cache.client.ClientRegionShortcut> getClientRegionShortcut()
Region.ClientRegionShortcut used to define the data policy
used by the client Region.ClientRegionShortcut,
Optional@NonNull protected org.apache.geode.cache.client.ClientRegionShortcut resolveClientRegionShortcut()
ClientRegionShortcut used to create and configure client Regions.
Defaults to ClientRegionShortcut.PROXY.
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 BeanPostProcessorBeansException@NonNull public GemfireDataSourcePostProcessor using(org.apache.geode.cache.client.ClientRegionShortcut clientRegionShortcut)
@NonNull public GemfireDataSourcePostProcessor using(@NonNull BeanFactory beanFactory)
Copyright © 2011–2023 Pivotal Software, Inc.. All rights reserved.