org.apache.aries.blueprint.reflect
Class ComponentMetadataImpl
java.lang.Object
org.apache.aries.blueprint.reflect.ComponentMetadataImpl
- All Implemented Interfaces:
- MutableComponentMetadata, ComponentMetadata, Metadata, NonNullMetadata
- Direct Known Subclasses:
- BeanMetadataImpl, PassThroughMetadataImpl, ServiceMetadataImpl, ServiceReferenceMetadataImpl
public class ComponentMetadataImpl
- extends java.lang.Object
- implements MutableComponentMetadata
Implementation of ComponentMetadata
- Version:
- $Rev: 896324 $, $Date: 2010-01-06 06:05:04 +0000 (Wed, 06 Jan 2010) $
Field Summary |
protected int |
activation
|
protected java.util.List<java.lang.String> |
dependsOn
|
protected java.lang.String |
id
|
Method Summary |
void |
addDependsOn(java.lang.String explicitDependency)
|
int |
getActivation()
Return the activation strategy for the component. |
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. |
void |
removeDependsOn(java.lang.String dependency)
|
void |
setActivation(int activation)
|
void |
setDependsOn(java.util.List<java.lang.String> dependsOn)
|
void |
setId(java.lang.String id)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
id
protected java.lang.String id
activation
protected int activation
dependsOn
protected java.util.List<java.lang.String> dependsOn
ComponentMetadataImpl
protected ComponentMetadataImpl()
ComponentMetadataImpl
protected ComponentMetadataImpl(ComponentMetadata source)
getId
public java.lang.String getId()
- Description copied from interface:
ComponentMetadata
- Return the id of the component.
- Specified by:
getId
in interface ComponentMetadata
- Returns:
- The id of the component. The component id can be
null
if this is an anonymously defined and/or
inlined component.
setId
public void setId(java.lang.String id)
- Specified by:
setId
in interface MutableComponentMetadata
getActivation
public int getActivation()
- Description copied from interface:
ComponentMetadata
- Return the activation strategy for the component.
This is specified by the
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
.
- Specified by:
getActivation
in interface ComponentMetadata
- Returns:
- The activation strategy for the component.
- See Also:
ComponentMetadata.ACTIVATION_EAGER
,
ComponentMetadata.ACTIVATION_LAZY
setActivation
public void setActivation(int activation)
- Specified by:
setActivation
in interface MutableComponentMetadata
getDependsOn
public java.util.List<java.lang.String> getDependsOn()
- Description copied from interface:
ComponentMetadata
- Return the ids of any components listed in a
depends-on
attribute for the component.
- Specified by:
getDependsOn
in interface ComponentMetadata
- Returns:
- An immutable List of component ids that are explicitly declared
as a dependency, or an empty List if none.
setDependsOn
public void setDependsOn(java.util.List<java.lang.String> dependsOn)
- Specified by:
setDependsOn
in interface MutableComponentMetadata
addDependsOn
public void addDependsOn(java.lang.String explicitDependency)
- Specified by:
addDependsOn
in interface MutableComponentMetadata
removeDependsOn
public void removeDependsOn(java.lang.String dependency)
- Specified by:
removeDependsOn
in interface MutableComponentMetadata
Copyright © 2009-2011 The Apache Software Foundation. All Rights Reserved.