public class BeanFactoryPoolResolver extends Object implements BeanFactoryAware, PoolResolver
PoolResolver
implementation that uses the Spring BeanFactory
to resolve managed Pool
objects.
This means the Pool
was configured and initialized by the Spring container given the Pool
would be a
proper bean declaration in this case.Pool
,
BeanFactory
,
BeanFactoryAware
,
PoolResolver
DEFAULT_POOL_NAME
Constructor and Description |
---|
BeanFactoryPoolResolver(BeanFactory beanFactory)
Constructs a new instance of the
BeanFactoryPoolResolver initialized with
the given Spring BeanFactory used to resolve managed Pool objects. |
Modifier and Type | Method and Description |
---|---|
protected BeanFactory |
getBeanFactory()
Returns a reference to the configured Spring
BeanFactory used to resolve managed Pool objects. |
org.apache.geode.cache.client.Pool |
resolve(String poolName)
|
void |
setBeanFactory(BeanFactory beanFactory) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
require, resolve, resolve
public BeanFactoryPoolResolver(@NonNull BeanFactory beanFactory)
BeanFactoryPoolResolver
initialized with
the given Spring BeanFactory
used to resolve managed Pool
objects.beanFactory
- Spring BeanFactory
used to resolve managed Pool
objects.BeanFactory
public final void setBeanFactory(@NonNull BeanFactory beanFactory) throws BeansException
setBeanFactory
in interface BeanFactoryAware
BeansException
protected BeanFactory getBeanFactory()
BeanFactory
used to resolve managed Pool
objects.BeanFactory
.BeanFactory
@Nullable public org.apache.geode.cache.client.Pool resolve(@Nullable String poolName)
resolve
in interface PoolResolver
poolName
- name
of the Pool
to resolve.named
, managed Pool
object or null if no Pool
with the given name
could be resolved from the configured Spring BeanFactory
.Pool
,
getBeanFactory()
Copyright © 2011–2020 Pivotal Software, Inc.. All rights reserved.