public abstract class WiringDeclarableSupport extends DeclarableSupport
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.BeanFactory,
BeanConfigurerSupport,
BeanWiringInfo,
DeclarableSupport,
LazyWiringDeclarableSupport,
Declarable| Modifier and Type | Field and Description |
|---|---|
protected static String |
TEMPLATE_BEAN_NAME_PROPERTY |
| Constructor and Description |
|---|
WiringDeclarableSupport() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
configureThis(BeanFactory beanFactory,
String templateBeanName)
Configures this
Declarable object using the bean defined and identified in the given
Spring BeanFactory with the given name used as a template for auto-wiring purposes. |
protected boolean |
configureThis(String templateBeanName)
Configures this
Declarable object using the bean defined and identified in the Spring BeanFactory
with the given name used as a template for auto-wiring purposes. |
void |
init(Properties parameters) |
protected BeanConfigurerSupport |
newBeanConfigurer(BeanFactory beanFactory)
Constructs a new, initialized instance of
BeanConfigurerSupport configured with
the given Spring BeanFactory. |
protected BeanConfigurerSupport |
newBeanConfigurer(BeanFactory beanFactory,
String templateBeanName)
Constructs a new, initialized instance of
BeanConfigurerSupport configured with
the given Spring BeanFactory and name of a Spring bean defined in the Spring BeanFactory
used as a template to wire this Declarable object. |
close, getBeanFactory, getBeanFactoryKey, locateBeanFactory, locateBeanFactory, setBeanFactoryKeyprotected static final String TEMPLATE_BEAN_NAME_PROPERTY
public void init(Properties parameters)
protected boolean configureThis(String templateBeanName)
Declarable object using the bean defined and identified in the Spring BeanFactory
with the given name used as a template for auto-wiring purposes.templateBeanName - String containing the name of the Spring bean used as a template
for auto-wiring purposes.Declarable object was successfully configured
and initialized by the Spring container.BeanConfigurerSupport,
configureThis(BeanFactory, String),
DeclarableSupport.locateBeanFactory()protected boolean configureThis(BeanFactory beanFactory, String templateBeanName)
Declarable object using the bean defined and identified in the given
Spring BeanFactory with the given name used as a template for auto-wiring purposes.beanFactory - Spring BeanFactory used to configure, auto-wire
and initialize this Declarable object.templateBeanName - String containing the name of the Spring bean used as a template
for auto-wiring purposes.Declarable object was successfully configured
and initialized by the Spring container.BeanConfigurerSupport,
newBeanConfigurer(BeanFactory, String)protected BeanConfigurerSupport newBeanConfigurer(BeanFactory beanFactory)
BeanConfigurerSupport configured with
the given Spring BeanFactory.beanFactory - reference to the Spring BeanFactory.BeanConfigurerSupport configured with
the given Spring BeanFactory.BeanConfigurerSupport,
BeanFactory,
newBeanConfigurer(BeanFactory, String)protected BeanConfigurerSupport newBeanConfigurer(BeanFactory beanFactory, String templateBeanName)
BeanConfigurerSupport configured with
the given Spring BeanFactory and name of a Spring bean defined in the Spring BeanFactory
used as a template to wire this Declarable object.beanFactory - reference to the Spring BeanFactory.templateBeanName - String containing the name of a Spring bean in the Spring BeanFactory
used as a template to wire this Declarable object.BeanConfigurerSupport configured with
the given Spring BeanFactory.BeanConfigurerSupport,
BeanFactoryCopyright © 2011–2020 Pivotal Software, Inc.. All rights reserved.