public class BeanComponentDefinition extends BeanDefinitionHolder implements ComponentDefinition
Modifier and Type | Field and Description |
---|---|
private BeanReference[] |
beanReferences |
private BeanDefinition[] |
innerBeanDefinitions |
Constructor and Description |
---|
BeanComponentDefinition(BeanDefinitionHolder holder)
Create a new BeanComponentDefinition for the given bean.
|
BeanComponentDefinition(BeanDefinition beanDefinition,
java.lang.String beanName)
Create a new BeanComponentDefinition for the given bean.
|
BeanComponentDefinition(BeanDefinition beanDefinition,
java.lang.String beanName,
java.lang.String[] aliases)
Create a new BeanComponentDefinition for the given bean.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object other)
This implementations expects the other object to be of type BeanComponentDefinition
as well, in addition to the superclass's equality requirements.
|
private void |
findInnerBeanDefinitionsAndBeanReferences(BeanDefinition beanDefinition) |
BeanDefinition[] |
getBeanDefinitions()
Return the
BeanDefinitions that were registered
to form this ComponentDefinition . |
BeanReference[] |
getBeanReferences()
Return the set of
BeanReferences that are considered
to be important to this ComponentDefinition . |
java.lang.String |
getDescription()
Return a friendly description of the described component.
|
BeanDefinition[] |
getInnerBeanDefinitions()
Return the
BeanDefinitions that represent all relevant
inner beans within this component. |
java.lang.String |
getName()
Get the user-visible name of this
ComponentDefinition . |
java.lang.String |
toString()
This implementation returns this ComponentDefinition's description.
|
getAliases, getBeanDefinition, getBeanName, getLongDescription, getShortDescription, getSource, hashCode, matchesName
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getSource
private BeanDefinition[] innerBeanDefinitions
private BeanReference[] beanReferences
public BeanComponentDefinition(BeanDefinition beanDefinition, java.lang.String beanName)
beanDefinition
- the BeanDefinitionbeanName
- the name of the beanpublic BeanComponentDefinition(BeanDefinition beanDefinition, java.lang.String beanName, java.lang.String[] aliases)
beanDefinition
- the BeanDefinitionbeanName
- the name of the beanaliases
- alias names for the bean, or null
if nonepublic BeanComponentDefinition(BeanDefinitionHolder holder)
holder
- the BeanDefinitionHolder encapsulating the
bean definition as well as the name of the beanprivate void findInnerBeanDefinitionsAndBeanReferences(BeanDefinition beanDefinition)
public java.lang.String getName()
ComponentDefinition
ComponentDefinition
.
This should link back directly to the corresponding configuration data for this component in a given context.
getName
in interface ComponentDefinition
public java.lang.String getDescription()
ComponentDefinition
Implementations are encouraged to return the same value from
toString()
.
getDescription
in interface ComponentDefinition
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()
.
getBeanDefinitions
in interface ComponentDefinition
public BeanDefinition[] getInnerBeanDefinitions()
ComponentDefinition
BeanDefinitions
that represent all relevant
inner beans within this component.
Other inner beans may exist within the associated BeanDefinitions
,
however these are not considered to be needed for validation or for user visualization.
getInnerBeanDefinitions
in interface ComponentDefinition
public BeanReference[] getBeanReferences()
ComponentDefinition
BeanReferences
that are considered
to be important to this ComponentDefinition
.
Other BeanReferences
may exist within the associated
BeanDefinitions
, however these are not considered
to be needed for validation or for user visualization.
getBeanReferences
in interface ComponentDefinition
public java.lang.String toString()
toString
in class BeanDefinitionHolder
getDescription()
public boolean equals(java.lang.Object other)
equals
in class BeanDefinitionHolder