public class ComponentMetadataImpl extends Object implements MutableComponentMetadata
| Modifier and Type | Field and Description |
|---|---|
protected int |
activation |
protected List<String> |
dependsOn |
protected String |
id |
ACTIVATION_EAGER, ACTIVATION_LAZY| Modifier | Constructor and Description |
|---|---|
protected |
ComponentMetadataImpl() |
protected |
ComponentMetadataImpl(ComponentMetadata source) |
| Modifier and Type | Method and Description |
|---|---|
void |
addDependsOn(String explicitDependency) |
int |
getActivation()
Return the activation strategy for the component.
|
List<String> |
getDependsOn()
Return the ids of any components listed in a
depends-on
attribute for the component. |
String |
getId()
Return the id of the component.
|
void |
removeDependsOn(String dependency) |
void |
setActivation(int activation) |
void |
setDependsOn(List<String> dependsOn) |
void |
setId(String id) |
protected String id
protected int activation
protected ComponentMetadataImpl()
protected ComponentMetadataImpl(ComponentMetadata source)
public String getId()
ComponentMetadatagetId in interface ComponentMetadatanull if this is an anonymously defined and/or
inlined component.public void setId(String id)
setId in interface MutableComponentMetadatapublic 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 void setActivation(int activation)
setActivation in interface MutableComponentMetadatapublic List<String> getDependsOn()
ComponentMetadatadepends-on
attribute for the component.getDependsOn in interface ComponentMetadatapublic void setDependsOn(List<String> dependsOn)
setDependsOn in interface MutableComponentMetadatapublic void addDependsOn(String explicitDependency)
addDependsOn in interface MutableComponentMetadatapublic void removeDependsOn(String dependency)
removeDependsOn in interface MutableComponentMetadataCopyright © 2012. All Rights Reserved.