public abstract class BeanDefinitionParserUtils extends Object
Modifier and Type | Method and Description |
---|---|
static void |
addConstructorArgReference(org.springframework.beans.factory.support.BeanDefinitionBuilder builder,
String beanReference)
Sets the property reference on bean definition in case reference
is set properly.
|
static org.springframework.beans.factory.config.BeanDefinitionHolder |
registerBean(String beanId,
org.springframework.beans.factory.config.BeanDefinition beanDefinition,
org.springframework.beans.factory.xml.ParserContext parserContext,
boolean shouldFireEvents)
Registers bean definition in parser registry and returns bean definition holder.
|
static org.springframework.beans.factory.config.BeanDefinitionHolder |
registerBean(String beanId,
Class<?> beanClass,
org.springframework.beans.factory.xml.ParserContext parserContext,
boolean shouldFireEvents)
Creates new bean definition from bean class and registers new bean in parser registry.
|
static void |
setConstructorArgValue(org.springframework.beans.factory.support.BeanDefinitionBuilder builder,
String propertyValue)
Sets the property value on bean definition as constructor argument in case value
is not null.
|
static void |
setPropertyReference(org.springframework.beans.factory.support.BeanDefinitionBuilder builder,
String beanReference,
String propertyName)
Sets the property reference on bean definition in case reference
is set properly.
|
static void |
setPropertyReference(org.springframework.beans.factory.support.BeanDefinitionBuilder builder,
String beanReference,
String propertyName,
String defaultValue)
Sets the property reference on bean definition.
|
static void |
setPropertyValue(org.springframework.beans.factory.support.BeanDefinitionBuilder builder,
String propertyValue,
String propertyName)
Sets the property value on bean definition in case value
is set properly.
|
public static void setPropertyValue(org.springframework.beans.factory.support.BeanDefinitionBuilder builder, String propertyValue, String propertyName)
builder
- the bean definition builder to be configuredpropertyValue
- the property valuepropertyName
- the name of the propertypublic static void setConstructorArgValue(org.springframework.beans.factory.support.BeanDefinitionBuilder builder, String propertyValue)
builder
- the bean definition to be configuredpropertyValue
- the property valuepublic static void setPropertyReference(org.springframework.beans.factory.support.BeanDefinitionBuilder builder, String beanReference, String propertyName)
builder
- the bean definition builder to be configuredbeanReference
- bean reference to populate the propertypropertyName
- the name of the propertypublic static void addConstructorArgReference(org.springframework.beans.factory.support.BeanDefinitionBuilder builder, String beanReference)
builder
- the bean definition builder to be configuredbeanReference
- bean reference to add as constructor argpublic static void setPropertyReference(org.springframework.beans.factory.support.BeanDefinitionBuilder builder, String beanReference, String propertyName, String defaultValue)
builder
- beanReference
- propertyName
- defaultValue
- public static org.springframework.beans.factory.config.BeanDefinitionHolder registerBean(String beanId, Class<?> beanClass, org.springframework.beans.factory.xml.ParserContext parserContext, boolean shouldFireEvents)
beanId
- beanClass
- parserContext
- shouldFireEvents
- public static org.springframework.beans.factory.config.BeanDefinitionHolder registerBean(String beanId, org.springframework.beans.factory.config.BeanDefinition beanDefinition, org.springframework.beans.factory.xml.ParserContext parserContext, boolean shouldFireEvents)
beanId
- beanDefinition
- parserContext
- shouldFireEvents
- Copyright © 2008–2017 ConSol Software GmbH. All rights reserved.