|
||||||||||
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.
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()
|
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()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |