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 a Spring bean defined and identified in the given Spring
BeanFactory with the given name used as a template for the auto-wiring function. |
protected boolean |
configureThis(String templateBeanName)
Configures this
Declarable object using a Spring bean defined and identified in the Spring
BeanFactory with the given name used as a template for the auto-wiring function. |
void |
initialize(org.apache.geode.cache.Cache cache,
Properties parameters) |
protected BeanConfigurerSupport |
newBeanConfigurer(BeanFactory beanFactory)
Constructs a new instance of
BeanConfigurerSupport configured with the given Spring BeanFactory . |
protected BeanConfigurerSupport |
newBeanConfigurer(BeanFactory beanFactory,
String templateBeanName)
Constructs a new 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 auto-wire this Declarable object. |
close, getBeanFactory, getBeanFactoryKey, locateBeanFactory, locateBeanFactory, setBeanFactoryKey
protected static final String TEMPLATE_BEAN_NAME_PROPERTY
public void initialize(@Nullable org.apache.geode.cache.Cache cache, @NonNull Properties parameters)
protected boolean configureThis(@Nullable String templateBeanName)
Declarable
object using a Spring bean defined and identified in the Spring
BeanFactory
with the given name
used as a template for the auto-wiring function.templateBeanName
- String
containing the name of the Spring bean used as a template
for the auto-wiring function.Declarable
object was successfully configured
and initialized by the Spring container.BeanConfigurerSupport
,
configureThis(BeanFactory, String)
,
DeclarableSupport.locateBeanFactory()
protected boolean configureThis(@NonNull BeanFactory beanFactory, @Nullable String templateBeanName)
Declarable
object using a Spring bean defined and identified in the given Spring
BeanFactory
with the given name
used as a template for the auto-wiring function.beanFactory
- Spring BeanFactory
used to auto-wire, configure and initialize
this Declarable
object; must not be nulltemplateBeanName
- String
containing the name of the Spring bean
used as a template for the auto-wiring function.Declarable
object was successfully configured
and initialized by the Spring container.BeanConfigurerSupport
,
newBeanConfigurer(BeanFactory, String)
@NonNull protected BeanConfigurerSupport newBeanConfigurer(@NonNull BeanFactory beanFactory)
BeanConfigurerSupport
configured with the given Spring BeanFactory
.beanFactory
- reference to the Spring BeanFactory
; must not be null.BeanConfigurerSupport
configured with the given Spring BeanFactory
.BeanConfigurerSupport
,
BeanFactory
,
newBeanConfigurer(BeanFactory, String)
@NonNull protected BeanConfigurerSupport newBeanConfigurer(@NonNull BeanFactory beanFactory, @Nullable 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 auto-wire this Declarable
object.beanFactory
- reference to the Spring BeanFactory
; must not be null.templateBeanName
- String
containing the name of a Spring bean declared in
the Spring BeanFactory
used as a template to auto-wire this Declarable
object.BeanConfigurerSupport
configured with the given Spring BeanFactory
.BeanConfigurerSupport
,
BeanFactory
Copyright © 2011–2023 Pivotal Software, Inc.. All rights reserved.