Class BeanFactoryPoolResolver
java.lang.Object
org.springframework.data.gemfire.client.support.BeanFactoryPoolResolver
- All Implemented Interfaces:
org.springframework.beans.factory.Aware
,org.springframework.beans.factory.BeanFactoryAware
,PoolResolver
public class BeanFactoryPoolResolver
extends Object
implements org.springframework.beans.factory.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
- See Also:
-
Pool
BeanFactory
BeanFactoryAware
PoolResolver
-
Field Summary
Fields inherited from interface org.springframework.data.gemfire.client.PoolResolver
DEFAULT_POOL_NAME
-
Constructor Summary
ConstructorDescriptionBeanFactoryPoolResolver
(org.springframework.beans.factory.BeanFactory beanFactory) Constructs a new instance of theBeanFactoryPoolResolver
initialized with the given SpringBeanFactory
used to resolve managedPool
objects. -
Method Summary
Modifier and TypeMethodDescriptionprotected org.springframework.beans.factory.BeanFactory
Returns a reference to the configured SpringBeanFactory
used to resolve managedPool
objects.org.apache.geode.cache.client.Pool
final void
setBeanFactory
(org.springframework.beans.factory.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
public BeanFactoryPoolResolver(@NonNull org.springframework.beans.factory.BeanFactory beanFactory) 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:
-
BeanFactory
-
-
Method Details
-
setBeanFactory
public final void setBeanFactory(@NonNull org.springframework.beans.factory.BeanFactory beanFactory) throws org.springframework.beans.BeansException - Specified by:
setBeanFactory
in interfaceorg.springframework.beans.factory.BeanFactoryAware
- Throws:
org.springframework.beans.BeansException
-
getBeanFactory
protected org.springframework.beans.factory.BeanFactory getBeanFactory()Returns a reference to the configured SpringBeanFactory
used to resolve managedPool
objects.- Returns:
- a reference to the configured Spring
BeanFactory
. - See Also:
-
BeanFactory
-
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:
-
Pool
getBeanFactory()
-