Class ComponentSetDescriptor
- java.lang.Object
-
- org.codehaus.plexus.component.repository.ComponentSetDescriptor
-
public class ComponentSetDescriptor extends java.lang.ObjectContains a set of ComponentDescriptors and the set's dependencies.
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<ComponentDescriptor<?>>componentsThe component descriptors that can be found within this component set descriptor.private java.util.List<ComponentDependency>dependenciesThe dependencies that are required by the set of components found in this component set descriptor.private java.lang.Stringidprivate booleanisolatedRealmFlag to indicate whether this component should be loaded in a realm/classloader of its own.private java.lang.StringsourceThe source location of this component source descriptor
-
Constructor Summary
Constructors Constructor Description ComponentSetDescriptor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddComponentDescriptor(ComponentDescriptor<?> cd)Add a new ComponentDescriptor to this set.voidaddDependency(ComponentDependency cd)Add a depenency to this set's contents.java.util.List<ComponentDescriptor<?>>getComponents()Returns a list of components in this set.java.util.List<ComponentDependency>getDependencies()Returns a List of dependencies of this set of components.java.lang.StringgetId()Returns the identifier of this set.java.lang.StringgetSource()booleanisIsolatedRealm()Returns true if this set may be in an isolated classrealm.voidsetComponents(java.util.List<ComponentDescriptor<?>> components)Sets a List of components as this set's contents.voidsetDependencies(java.util.List<ComponentDependency> dependencies)Sets a List of dependencies as this set's component dependencies.voidsetId(java.lang.String id)Sets the identifier of this set.voidsetIsolatedRealm(boolean isolatedRealm)Sets that this set of components may be in an isolated classrealm.voidsetSource(java.lang.String source)java.lang.StringtoString()
-
-
-
Field Detail
-
id
private java.lang.String id
-
source
private java.lang.String source
The source location of this component source descriptor
-
isolatedRealm
private boolean isolatedRealm
Flag to indicate whether this component should be loaded in a realm/classloader of its own.
-
components
private final java.util.List<ComponentDescriptor<?>> components
The component descriptors that can be found within this component set descriptor.
-
dependencies
private final java.util.List<ComponentDependency> dependencies
The dependencies that are required by the set of components found in this component set descriptor.
-
-
Method Detail
-
getComponents
public java.util.List<ComponentDescriptor<?>> getComponents()
Returns a list of components in this set.- Returns:
- a list of components
-
addComponentDescriptor
public void addComponentDescriptor(ComponentDescriptor<?> cd)
Add a new ComponentDescriptor to this set.- Parameters:
cd- the ComponentDescriptor to add
-
setComponents
public void setComponents(java.util.List<ComponentDescriptor<?>> components)
Sets a List of components as this set's contents.- Parameters:
components- the List of components to set
-
getDependencies
public java.util.List<ComponentDependency> getDependencies()
Returns a List of dependencies of this set of components.- Returns:
- a List of dependencies of this set of components
-
addDependency
public void addDependency(ComponentDependency cd)
Add a depenency to this set's contents.- Parameters:
cd- the ComponentDependency to add
-
setDependencies
public void setDependencies(java.util.List<ComponentDependency> dependencies)
Sets a List of dependencies as this set's component dependencies.- Parameters:
dependencies- the List of components to set
-
setIsolatedRealm
public void setIsolatedRealm(boolean isolatedRealm)
Sets that this set of components may be in an isolated classrealm.- Parameters:
isolatedRealm- true if this set of components may be in an isolated classrealm
-
isIsolatedRealm
public boolean isIsolatedRealm()
Returns true if this set may be in an isolated classrealm.- Returns:
- true if this set may be in an isolated classrealm
-
getId
public java.lang.String getId()
Returns the identifier of this set.- Returns:
- the identifier of this set
-
setId
public void setId(java.lang.String id)
Sets the identifier of this set.- Parameters:
id- the identifier to set
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
getSource
public java.lang.String getSource()
-
setSource
public void setSource(java.lang.String source)
-
-