public final class BeanDefinitionParserUtils extends Object
Modifier and Type | Field and Description |
---|---|
static String |
CLASS
XML attribute that holds a bean class name.
|
static String |
ID
XML attribute that holds an id.
|
static String |
REF
XML attribute that holds a bean reference.
|
Modifier and Type | Method and Description |
---|---|
static Pair<String,org.springframework.beans.factory.config.BeanDefinition> |
registerBeanDefinitionIfNeeded(Class<?> beanClass,
org.springframework.beans.factory.support.BeanDefinitionRegistry registry)
Registers a bean definition for the given class if the bean definition is not already registered.
|
static Pair<String,org.springframework.beans.factory.config.BeanDefinition> |
registerBeanDefinitionIfNeeded(Class<?> beanClass,
List<Object> constructorValues,
List<String> constructorReferences,
Map<String,Object> propertyValues,
Map<String,String> propertyReferences,
org.springframework.beans.factory.support.BeanDefinitionRegistry registry)
Registers a bean definition for the given class, if the bean definition is not already registered in the specified registry.
|
static String |
registerWithPreferredName(org.springframework.beans.factory.config.BeanDefinition beanDefinitionToRegister,
org.springframework.beans.factory.config.BeanDefinition beanDefinitionToNameAfter,
String preferredBeanName,
org.springframework.beans.factory.xml.ParserContext parserContext)
Register the bean with the preferred name.
|
static String |
registerWithPreferredName(org.springframework.beans.factory.config.BeanDefinition beanDefinitionToRegister,
String preferredBeanName,
org.springframework.beans.factory.xml.ParserContext parserContext)
Register the bean with the preferred name.
|
public static final String ID
public static final String REF
public static final String CLASS
public static String registerWithPreferredName(org.springframework.beans.factory.config.BeanDefinition beanDefinitionToRegister, String preferredBeanName, org.springframework.beans.factory.xml.ParserContext parserContext)
beanDefinitionToRegister
- the bean to registerpreferredBeanName
- the preferred bean nameparserContext
- the parser contextpublic static String registerWithPreferredName(org.springframework.beans.factory.config.BeanDefinition beanDefinitionToRegister, org.springframework.beans.factory.config.BeanDefinition beanDefinitionToNameAfter, String preferredBeanName, org.springframework.beans.factory.xml.ParserContext parserContext)
beanDefinitionToRegister
- the bean to registerbeanDefinitionToNameAfter
- the bean after which to name the registered beanpreferredBeanName
- the preferred bean nameparserContext
- the parser contextpublic static Pair<String,org.springframework.beans.factory.config.BeanDefinition> registerBeanDefinitionIfNeeded(Class<?> beanClass, org.springframework.beans.factory.support.BeanDefinitionRegistry registry)
beanClass
- the class for which to register a bean definitionregistry
- the registry in which to register the bean definitionpublic static Pair<String,org.springframework.beans.factory.config.BeanDefinition> registerBeanDefinitionIfNeeded(Class<?> beanClass, List<Object> constructorValues, List<String> constructorReferences, Map<String,Object> propertyValues, Map<String,String> propertyReferences, org.springframework.beans.factory.support.BeanDefinitionRegistry registry)
beanClass
- the class for which to register a bean definitionconstructorValues
- the constructor values to set on the bean definitionconstructorReferences
- the constructor references to set on the bean definitionpropertyValues
- the property values to set on the bean definitionpropertyReferences
- the property references to set on the bean definitionregistry
- the registry in which to register the bean definitionCopyright © 2010 - 2018 edorasware ag. All Rights Reserved.