| java.lang.Object | |
| ↳ | org.springframework.beans.factory.support.BeanDefinitionReaderUtils |
Utility methods that are useful for bean definition reader implementations. Mainly intended for internal use.
| Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| String | GENERATED_BEAN_NAME_SEPARATOR | Separator for generated bean names. | |||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Create a new GenericBeanDefinition for the given parent name and class name,
eagerly loading the bean class if a ClassLoader has been specified.
| |||||||||||
Generate a bean name for the given bean definition, unique within the
given bean factory.
| |||||||||||
Generate a bean name for the given top-level bean definition,
unique within the given bean factory.
| |||||||||||
Register the given bean definition with the given bean factory.
| |||||||||||
Register the given bean definition with a generated name,
unique within the given bean factory.
| |||||||||||
This method is deprecated.
since Spring 3.1 in favor of
registerWithGeneratedName(BeanDefinition, BeanDefinitionRegistry)
and its more general signature.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
Separator for generated bean names. If a class name or parent name is not unique, "#1", "#2" etc will be appended, until the name becomes unique.
Create a new GenericBeanDefinition for the given parent name and class name, eagerly loading the bean class if a ClassLoader has been specified.
| parentName | the name of the parent bean, if any |
|---|---|
| className | the name of the bean class, if any |
| classLoader | the ClassLoader to use for loading bean classes
(can be null to just register bean classes by name) |
| ClassNotFoundException | if the bean class could not be loaded |
|---|
Generate a bean name for the given bean definition, unique within the given bean factory.
| definition | the bean definition to generate a bean name for |
|---|---|
| registry | the bean factory that the definition is going to be registered with (to check for existing bean names) |
| isInnerBean | whether the given bean definition will be registered as inner bean or as top-level bean (allowing for special name generation for inner beans versus top-level beans) |
| BeanDefinitionStoreException | if no unique name can be generated for the given bean definition |
|---|
Generate a bean name for the given top-level bean definition, unique within the given bean factory.
| beanDefinition | the bean definition to generate a bean name for |
|---|---|
| registry | the bean factory that the definition is going to be registered with (to check for existing bean names) |
| BeanDefinitionStoreException | if no unique name can be generated for the given bean definition |
|---|
Register the given bean definition with the given bean factory.
| definitionHolder | the bean definition including name and aliases |
|---|---|
| registry | the bean factory to register with |
| BeanDefinitionStoreException | if registration failed |
|---|
Register the given bean definition with a generated name, unique within the given bean factory.
| definition | the bean definition to generate a bean name for |
|---|---|
| registry | the bean factory to register with |
| BeanDefinitionStoreException | if no unique name can be generated for the given bean definition or the definition cannot be registered |
|---|
This method is deprecated.
since Spring 3.1 in favor of
registerWithGeneratedName(BeanDefinition, BeanDefinitionRegistry)
and its more general signature.
| BeanDefinitionStoreException |
|---|