public class GemfireDataSourcePostProcessor extends Object implements BeanFactoryPostProcessor
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(org.apache.geode.cache.client.ClientCache clientCache)
<<<<<<< HEAD
Constructs an instance of the GemfireDataSourcePostProcessor BeanFactoryPostProcessor class initialized
with the specified Pivotal GemFire ClientCache instance for creating client PROXY Regions for all data Regions
configured in the Pivotal GemFire cluster.
|
Modifier and Type | Method and Description |
---|---|
protected org.apache.geode.cache.client.ClientCache |
getClientCache()
Returns a reference to the
ClientCache . |
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. |
void |
postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory) |
void |
setClientRegionShortcut(org.apache.geode.cache.client.ClientRegionShortcut clientRegionShortcut)
Set the data policy used to configure the client
Region . |
GemfireDataSourcePostProcessor |
using(org.apache.geode.cache.client.ClientRegionShortcut clientRegionShortcut) |
public GemfireDataSourcePostProcessor(org.apache.geode.cache.client.ClientCache clientCache)
clientCache
- the Pivotal GemFire ClientCache instance.
=======
Constructs an instance of the GemfireDataSourcePostProcessor
BeanFactoryPostProcessor
class
initialized * with the specified ClientCache
instance for creating client Regions
for all data Regions
configured in the cluster.clientCache
- reference to the ClientCache
instance.IllegalArgumentException
- if ClientCache
is null.
>>>>>>> 847c11b8... DATAGEODE-142 - Add annotation configuration support to create client Regions from Cluster-defined Regions.ClientCache
protected org.apache.geode.cache.client.ClientCache getClientCache()
ClientCache
.ClientCache
.ClientCache
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.slf4j.Logger getLogger()
Logger
used to log messages.Logger
.Logger
public void postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory) throws BeansException
postProcessBeanFactory
in interface BeanFactoryPostProcessor
BeansException
public GemfireDataSourcePostProcessor using(org.apache.geode.cache.client.ClientRegionShortcut clientRegionShortcut)
Copyright © 2011–2019 Pivotal Software, Inc.. All rights reserved.