Class WiringDeclarableSupport
java.lang.Object
org.springframework.data.gemfire.support.DeclarableSupport
org.springframework.data.gemfire.support.WiringDeclarableSupport
- All Implemented Interfaces:
CacheCallback,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.- Author:
- Costin Leau, John Blum
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanconfigureThis(String templateBeanName) Configures thisDeclarableobject using the bean defined and identified in the SpringBeanFactorywith the givennameused as a template for auto-wiring purposes.protected booleanconfigureThis(BeanFactory beanFactory, String templateBeanName) Configures thisDeclarableobject using the bean defined and identified in the given SpringBeanFactorywith the givennameused as a template for auto-wiring purposes.voidinit(Properties parameters) protected BeanConfigurerSupportnewBeanConfigurer(BeanFactory beanFactory) Constructs a new, initialized instance ofBeanConfigurerSupportconfigured with the given SpringBeanFactory.protected BeanConfigurerSupportnewBeanConfigurer(BeanFactory beanFactory, String templateBeanName) Constructs a new, initialized instance ofBeanConfigurerSupportconfigured with the given SpringBeanFactoryand name of a Spring bean defined in the SpringBeanFactoryused as a template to 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
initialize
-
Field Details
-
TEMPLATE_BEAN_NAME_PROPERTY
- See Also:
-
-
Constructor Details
-
WiringDeclarableSupport
public WiringDeclarableSupport()
-
-
Method Details
-
init
-
configureThis
Configures thisDeclarableobject using the bean defined and identified in the SpringBeanFactorywith the givennameused as a template for auto-wiring purposes.- Parameters:
templateBeanName-Stringcontaining the name of the Spring bean used as a template for auto-wiring purposes.- Returns:
- a boolean value indicating whether this
Declarableobject was successfully configured and initialized by the Spring container. - See Also:
-
configureThis
Configures thisDeclarableobject using the bean defined and identified in the given SpringBeanFactorywith the givennameused as a template for auto-wiring purposes.- Parameters:
beanFactory- SpringBeanFactoryused to configure, auto-wire and initialize thisDeclarableobject.templateBeanName-Stringcontaining the name of the Spring bean used as a template for auto-wiring purposes.- Returns:
- a boolean value indicating whether this
Declarableobject was successfully configured and initialized by the Spring container. - See Also:
-
newBeanConfigurer
Constructs a new, initialized instance ofBeanConfigurerSupportconfigured with the given SpringBeanFactory.- Parameters:
beanFactory- reference to the SpringBeanFactory.- Returns:
- a new, initialized instance of
BeanConfigurerSupportconfigured with the given SpringBeanFactory. - See Also:
-
newBeanConfigurer
Constructs a new, initialized instance ofBeanConfigurerSupportconfigured with the given SpringBeanFactoryand name of a Spring bean defined in the SpringBeanFactoryused as a template to wire thisDeclarableobject.- Parameters:
beanFactory- reference to the SpringBeanFactory.templateBeanName-Stringcontaining the name of a Spring bean in the SpringBeanFactoryused as a template to wire thisDeclarableobject.- Returns:
- a new, initialized instance of
BeanConfigurerSupportconfigured with the given SpringBeanFactory. - See Also:
-