org.apache.geronimo.blueprint.reflect
Class ComponentMetadataImpl
java.lang.Object
org.apache.geronimo.blueprint.reflect.ComponentMetadataImpl
- All Implemented Interfaces:
- MutableComponentMetadata, ComponentMetadata, Metadata, NonNullMetadata
- Direct Known Subclasses:
- BeanMetadataImpl, EnvironmentMetadataImpl, ServiceMetadataImpl, ServiceReferenceMetadataImpl
public class ComponentMetadataImpl
- extends Object
- implements MutableComponentMetadata
Implementation of ComponentMetadata
- Version:
- $Rev: 760378 $, $Date: 2009-03-31 11:31:38 +0200 (Tue, 31 Mar 2009) $
- Author:
- Apache Geronimo Project
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
id
protected String id
activation
protected int activation
dependsOn
protected List<String> dependsOn
ComponentMetadataImpl
protected ComponentMetadataImpl()
ComponentMetadataImpl
protected ComponentMetadataImpl(ComponentMetadata source)
getId
public 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(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 List<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(List<String> dependsOn)
- Specified by:
setDependsOn in interface MutableComponentMetadata
addDependsOn
public void addDependsOn(String explicitDependency)
- Specified by:
addDependsOn in interface MutableComponentMetadata
removeDependsOn
public void removeDependsOn(String dependency)
- Specified by:
removeDependsOn in interface MutableComponentMetadata
Copyright © 2003-2009 The Apache Software Foundation. All Rights Reserved.