|
The Spring Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.beans.factory.parsing.AbstractComponentDefinition
org.springframework.beans.factory.parsing.BeanComponentDefinition
public class BeanComponentDefinition
ComponentDefinition based on a standard BeanDefinition, exposing the given bean definition as well as inner bean definitions and bean references for the given bean.
Constructor Summary | |
---|---|
BeanComponentDefinition(BeanDefinitionHolder holder)
Create a new BeanComponentDefinition for the given bean. |
|
BeanComponentDefinition(BeanDefinition beanDefinition,
String beanName)
Create a new BeanComponentDefinition for the given bean. |
Method Summary | |
---|---|
BeanDefinition[] |
getBeanDefinitions()
Return the BeanDefinitions that were registered
to form this ComponentDefinition . |
BeanReference[] |
getBeanReferences()
Returns an empty array. |
String |
getDescription()
Delegates to ComponentDefinition.getName() . |
BeanDefinition[] |
getInnerBeanDefinitions()
Returns an empty array. |
String |
getName()
Get the user visible name of this ComponentDefinition . |
Object |
getSource()
Return the configuration source Object for this metadata element
(may be null ). |
Methods inherited from class org.springframework.beans.factory.parsing.AbstractComponentDefinition |
---|
toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public BeanComponentDefinition(BeanDefinition beanDefinition, String beanName)
beanDefinition
- the BeanDefinitionbeanName
- the name of the beanpublic BeanComponentDefinition(BeanDefinitionHolder holder)
holder
- the BeanDefinitionHolder encapsulating the
bean definition as well as the name of the beanMethod Detail |
---|
public String getName()
ComponentDefinition
ComponentDefinition
.
This should link back directly to the corresponding configuration data
for this component in a given context.
public String getDescription()
AbstractComponentDefinition
ComponentDefinition.getName()
.
getDescription
in interface ComponentDefinition
getDescription
in class AbstractComponentDefinition
public BeanDefinition[] getBeanDefinitions()
ComponentDefinition
BeanDefinitions
that were registered
to form this ComponentDefinition
.
It should be noted that a ComponentDefinition
may well be related with
other BeanDefinitions
via references
,
however these are not included as they may be not available immediately.
Important BeanReferences
are available from ComponentDefinition.getBeanReferences()
.
public BeanDefinition[] getInnerBeanDefinitions()
AbstractComponentDefinition
getInnerBeanDefinitions
in interface ComponentDefinition
getInnerBeanDefinitions
in class AbstractComponentDefinition
public BeanReference[] getBeanReferences()
AbstractComponentDefinition
getBeanReferences
in interface ComponentDefinition
getBeanReferences
in class AbstractComponentDefinition
public Object getSource()
BeanMetadataElement
Object
for this metadata element
(may be null
).
|
The Spring Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |