|
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 bean| Method Detail |
|---|
public String getName()
ComponentDefinitionComponentDefinition.
This should link back directly to the corresponding configuration data
for this component in a given context.
public String getDescription()
AbstractComponentDefinitionComponentDefinition.getName().
getDescription in interface ComponentDefinitiongetDescription in class AbstractComponentDefinitionpublic BeanDefinition[] getBeanDefinitions()
ComponentDefinitionBeanDefinitions 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 ComponentDefinitiongetInnerBeanDefinitions in class AbstractComponentDefinitionpublic BeanReference[] getBeanReferences()
AbstractComponentDefinition
getBeanReferences in interface ComponentDefinitiongetBeanReferences in class AbstractComponentDefinitionpublic Object getSource()
BeanMetadataElementObject 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 | |||||||||