Spring Data for VMware GemFire
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:
-
PoolBeanFactoryBeanFactoryAwarePoolResolver
-
Field Summary
Fields inherited from interface org.springframework.data.gemfire.client.PoolResolver
DEFAULT_POOL_NAME -
Constructor Summary
ConstructorsConstructorDescriptionBeanFactoryPoolResolver(org.springframework.beans.factory.BeanFactory beanFactory) Constructs a new instance of theBeanFactoryPoolResolverinitialized with the given SpringBeanFactoryused to resolve managedPoolobjects. -
Method Summary
Modifier and TypeMethodDescriptionprotected org.springframework.beans.factory.BeanFactoryReturns a reference to the configured SpringBeanFactoryused to resolve managedPoolobjects.org.apache.geode.cache.client.Poolfinal voidsetBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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 theBeanFactoryPoolResolverinitialized with the given SpringBeanFactoryused to resolve managedPoolobjects.- Parameters:
beanFactory- SpringBeanFactoryused to resolve managedPoolobjects.- See Also:
-
BeanFactory
-
-
Method Details
-
setBeanFactory
public final void setBeanFactory(@NonNull org.springframework.beans.factory.BeanFactory beanFactory) throws org.springframework.beans.BeansException - Specified by:
setBeanFactoryin interfaceorg.springframework.beans.factory.BeanFactoryAware- Throws:
org.springframework.beans.BeansException
-
getBeanFactory
protected org.springframework.beans.factory.BeanFactory getBeanFactory()Returns a reference to the configured SpringBeanFactoryused to resolve managedPoolobjects.- Returns:
- a reference to the configured Spring
BeanFactory. - See Also:
-
BeanFactory
-
resolve
- Specified by:
resolvein interfacePoolResolver- Parameters:
poolName-nameof thePoolto resolve.- Returns:
- the resolved,
named, managedPoolobject or null if noPoolwith the givennamecould be resolved from the configured SpringBeanFactory. - See Also:
-
PoolgetBeanFactory()
-