class SimpleComponentMetadata extends java.lang.Object implements ComponentMetadata
ComponentMetadata implementation based on Spring's BeanDefinition.| Modifier and Type | Field and Description |
|---|---|
private int |
activation |
protected org.springframework.beans.factory.support.AbstractBeanDefinition |
beanDefinition |
private java.util.List<java.lang.String> |
dependsOn |
private java.lang.String |
name |
ACTIVATION_EAGER, ACTIVATION_LAZY| Constructor and Description |
|---|
SimpleComponentMetadata(java.lang.String name,
org.springframework.beans.factory.config.BeanDefinition definition) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
int |
getActivation()
Return the activation strategy for the component.
|
org.springframework.beans.factory.config.BeanDefinition |
getBeanDefinition() |
java.util.List<java.lang.String> |
getDependsOn()
Return the ids of any components listed in a
depends-on
attribute for the component. |
java.lang.String |
getId()
Return the id of the component.
|
int |
hashCode() |
java.lang.String |
toString() |
private final java.lang.String name
protected final org.springframework.beans.factory.support.AbstractBeanDefinition beanDefinition
private final java.util.List<java.lang.String> dependsOn
private final int activation
public SimpleComponentMetadata(java.lang.String name,
org.springframework.beans.factory.config.BeanDefinition definition)
public org.springframework.beans.factory.config.BeanDefinition getBeanDefinition()
public java.lang.String getId()
ComponentMetadatagetId in interface ComponentMetadatanull if this is an anonymously defined and/or
inlined component.public java.util.List<java.lang.String> getDependsOn()
ComponentMetadatadepends-on
attribute for the component.getDependsOn in interface ComponentMetadatapublic int getActivation()
ComponentMetadataactivation attribute of a component
definition. If this is not set, then the default-activation
in the blueprint element is used. If that is also not set,
then the activation strategy is ComponentMetadata.ACTIVATION_EAGER.getActivation in interface ComponentMetadataComponentMetadata.ACTIVATION_EAGER,
ComponentMetadata.ACTIVATION_LAZYpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object