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()
ComponentMetadata
getId
in interface ComponentMetadata
null
if this is an anonymously defined and/or
inlined component.public void setId(String id)
setId
in interface MutableComponentMetadata
public int getActivation()
ComponentMetadata
activation
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 ComponentMetadata
ComponentMetadata.ACTIVATION_EAGER
,
ComponentMetadata.ACTIVATION_LAZY
public void setActivation(int activation)
setActivation
in interface MutableComponentMetadata
public List<String> getDependsOn()
ComponentMetadata
depends-on
attribute for the component.getDependsOn
in interface ComponentMetadata
public void setDependsOn(List<String> dependsOn)
setDependsOn
in interface MutableComponentMetadata
public void addDependsOn(String explicitDependency)
addDependsOn
in interface MutableComponentMetadata
public void removeDependsOn(String dependency)
removeDependsOn
in interface MutableComponentMetadata
Copyright © 2013. All rights reserved.