Spring Data for VMware GemFire
Class WiringDeclarableSupport
java.lang.Object
org.springframework.data.gemfire.support.DeclarableSupport
org.springframework.data.gemfire.support.WiringDeclarableSupport
- All Implemented Interfaces:
org.apache.geode.cache.CacheCallback,org.apache.geode.cache.Declarable
- Direct Known Subclasses:
AbstractAuthInitialize,LazyWiringDeclarableSupport
Declarable support class used to wire declaring, implementing instances through the Spring container.
This implementation first looks for a 'bean-name' property, which will be used to locate
a Spring bean definition used as the 'template' for auto-wiring purposes. Auto-wiring will be performed
based on the settings defined in the Spring container.- See Also:
-
BeanFactoryBeanConfigurerSupportBeanWiringInfoDeclarableSupportLazyWiringDeclarableSupportDeclarable
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanconfigureThis(String templateBeanName) Configures thisDeclarableobject using a Spring bean defined and identified in the SpringBeanFactorywith the givennameused as a template for the auto-wiring function.protected booleanconfigureThis(org.springframework.beans.factory.BeanFactory beanFactory, String templateBeanName) Configures thisDeclarableobject using a Spring bean defined and identified in the given SpringBeanFactorywith the givennameused as a template for the auto-wiring function.voidinitialize(org.apache.geode.cache.Cache cache, Properties parameters) protected org.springframework.beans.factory.wiring.BeanConfigurerSupportnewBeanConfigurer(org.springframework.beans.factory.BeanFactory beanFactory) Constructs a new instance ofBeanConfigurerSupportconfigured with the given SpringBeanFactory.protected org.springframework.beans.factory.wiring.BeanConfigurerSupportnewBeanConfigurer(org.springframework.beans.factory.BeanFactory beanFactory, String templateBeanName) Constructs a new instance ofBeanConfigurerSupportconfigured with the given SpringBeanFactoryandnameof a Spring bean defined in the SpringBeanFactoryused as a template to auto-wire thisDeclarableobject.Methods inherited from class org.springframework.data.gemfire.support.DeclarableSupport
close, getBeanFactory, getBeanFactoryKey, locateBeanFactory, locateBeanFactory, setBeanFactoryKeyMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.geode.cache.Declarable
init
-
Field Details
-
TEMPLATE_BEAN_NAME_PROPERTY
- See Also:
-
-
Constructor Details
-
WiringDeclarableSupport
public WiringDeclarableSupport()
-
-
Method Details
-
initialize
public void initialize(@Nullable org.apache.geode.cache.Cache cache, @NonNull Properties parameters) -
configureThis
Configures thisDeclarableobject using a Spring bean defined and identified in the SpringBeanFactorywith the givennameused as a template for the auto-wiring function.- Parameters:
templateBeanName-Stringcontaining the name of the Spring bean used as a template for the auto-wiring function.- Returns:
- a boolean value indicating whether this
Declarableobject was successfully configured and initialized by the Spring container. - See Also:
-
BeanConfigurerSupportconfigureThis(BeanFactory, String)DeclarableSupport.locateBeanFactory()
-
configureThis
protected boolean configureThis(@NonNull org.springframework.beans.factory.BeanFactory beanFactory, @Nullable String templateBeanName) Configures thisDeclarableobject using a Spring bean defined and identified in the given SpringBeanFactorywith the givennameused as a template for the auto-wiring function.- Parameters:
beanFactory- SpringBeanFactoryused to auto-wire, configure and initialize thisDeclarableobject; must not be nulltemplateBeanName-Stringcontaining the name of the Spring bean used as a template for the auto-wiring function.- Returns:
- a boolean value indicating whether this
Declarableobject was successfully configured and initialized by the Spring container. - See Also:
-
BeanConfigurerSupportnewBeanConfigurer(BeanFactory, String)
-
newBeanConfigurer
@NonNull protected org.springframework.beans.factory.wiring.BeanConfigurerSupport newBeanConfigurer(@NonNull org.springframework.beans.factory.BeanFactory beanFactory) Constructs a new instance ofBeanConfigurerSupportconfigured with the given SpringBeanFactory.- Parameters:
beanFactory- reference to the SpringBeanFactory; must not be null.- Returns:
- a new
BeanConfigurerSupportconfigured with the given SpringBeanFactory. - See Also:
-
BeanConfigurerSupportBeanFactorynewBeanConfigurer(BeanFactory, String)
-
newBeanConfigurer
@NonNull protected org.springframework.beans.factory.wiring.BeanConfigurerSupport newBeanConfigurer(@NonNull org.springframework.beans.factory.BeanFactory beanFactory, @Nullable String templateBeanName) Constructs a new instance ofBeanConfigurerSupportconfigured with the given SpringBeanFactoryandnameof a Spring bean defined in the SpringBeanFactoryused as a template to auto-wire thisDeclarableobject.- Parameters:
beanFactory- reference to the SpringBeanFactory; must not be null.templateBeanName-Stringcontaining the name of a Spring bean declared in the SpringBeanFactoryused as a template to auto-wire thisDeclarableobject.- Returns:
- a new
BeanConfigurerSupportconfigured with the given SpringBeanFactory. - See Also:
-
BeanConfigurerSupportBeanFactory
-