|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.beans.factory.config.BeanDefinitionHolder
public class BeanDefinitionHolder
Holder for a BeanDefinition with name and aliases. Can be registered as a placeholder for an inner bean.
Recognized by AbstractAutowireCapableBeanFactory for inner bean definitions. Registered by DefaultXmlBeanDefinitionParser, which also uses it as general holder for a parsed bean definition.
Can also be used for programmatic registration of inner bean definitions. If you don't care about BeanNameAware and the like, registering RootBeanDefinition or ChildBeanDefinition is good enough.
BeanNameAware
,
RootBeanDefinition
,
ChildBeanDefinition
Constructor Summary | |
---|---|
BeanDefinitionHolder(BeanDefinition beanDefinition,
String beanName)
Create a new BeanDefinitionHolder. |
|
BeanDefinitionHolder(BeanDefinition beanDefinition,
String beanName,
String[] aliases)
Create a new BeanDefinitionHolder. |
Method Summary | |
---|---|
String[] |
getAliases()
Return the alias names for the bean, as specified directly for the bean definition. |
BeanDefinition |
getBeanDefinition()
Return the wrapped BeanDefinition. |
String |
getBeanName()
Return the primary name of the bean, as specified for the bean definition. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public BeanDefinitionHolder(BeanDefinition beanDefinition, String beanName)
beanDefinition
- the BeanDefinition to wrapbeanName
- the name of the bean, as specified for the bean definitionpublic BeanDefinitionHolder(BeanDefinition beanDefinition, String beanName, String[] aliases)
beanDefinition
- the BeanDefinition to wrapbeanName
- the name of the bean, as specified for the bean definitionaliases
- alias names for the bean, or null
if noneMethod Detail |
---|
public BeanDefinition getBeanDefinition()
public String getBeanName()
public String[] getAliases()
null
if nonepublic String toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |