|
|||||||||||
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
Holder for a BeanDefinition with name and aliases.
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.
AbstractAutowireCapableBeanFactory.resolveValueIfNecessary(java.lang.String, org.springframework.beans.factory.support.RootBeanDefinition, java.lang.String, java.lang.Object)
,
DefaultXmlBeanDefinitionParser.parseBeanDefinition(org.w3c.dom.Element)
,
BeanNameAware
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()
|
BeanDefinition |
getBeanDefinition()
|
String |
getBeanName()
|
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 BeanDefinitionbeanName
- the name of the beanpublic BeanDefinitionHolder(BeanDefinition beanDefinition, String beanName, String[] aliases)
beanDefinition
- the BeanDefinitionbeanName
- the name of the beanaliases
- alias names of the bean, or null if noneMethod Detail |
public BeanDefinition getBeanDefinition()
public String getBeanName()
public String[] getAliases()
public String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |