Class BeanFactoryPoolResolver
java.lang.Object
org.springframework.data.gemfire.client.support.BeanFactoryPoolResolver
- All Implemented Interfaces:
Aware
,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.- Since:
- 2.3.0
- Author:
- John Blum
- See Also:
-
Field Summary
Fields inherited from interface org.springframework.data.gemfire.client.PoolResolver
DEFAULT_POOL_NAME
-
Constructor Summary
ConstructorsConstructorDescriptionBeanFactoryPoolResolver
(BeanFactory beanFactory) Constructs a new instance of theBeanFactoryPoolResolver
initialized with the given SpringBeanFactory
used to resolve managedPool
objects. -
Method Summary
Modifier and TypeMethodDescriptionprotected BeanFactory
Returns a reference to the configured SpringBeanFactory
used to resolve managedPool
objects.final void
setBeanFactory
(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.data.gemfire.client.PoolResolver
require, resolve, resolve
-
Constructor Details
-
BeanFactoryPoolResolver
Constructs a new instance of theBeanFactoryPoolResolver
initialized with the given SpringBeanFactory
used to resolve managedPool
objects.- Parameters:
beanFactory
- SpringBeanFactory
used to resolve managedPool
objects.- See Also:
-
-
Method Details
-
setBeanFactory
- Specified by:
setBeanFactory
in interfaceBeanFactoryAware
- Throws:
BeansException
-
getBeanFactory
Returns a reference to the configured SpringBeanFactory
used to resolve managedPool
objects.- Returns:
- a reference to the configured Spring
BeanFactory
. - See Also:
-
resolve
- Specified by:
resolve
in interfacePoolResolver
- Parameters:
poolName
-name
of thePool
to resolve.- Returns:
- the resolved,
named
, managedPool
object or null if noPool
with the givenname
could be resolved from the configured SpringBeanFactory
. - See Also:
-