Class ComponentSetDescriptor
java.lang.Object
org.codehaus.plexus.component.repository.ComponentSetDescriptor
Contains a set of ComponentDescriptors and the set's dependencies.
- Author:
- Jason van Zyl, Trygve Laugstøl
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Add a new ComponentDescriptor to this set.void
Add a depenency to this set's contents.Returns a list of components in this set.Returns a List of dependencies of this set of components.getId()
Returns the identifier of this set.boolean
Returns true if this set may be in an isolated classrealm.void
setComponents
(List<ComponentDescriptor<?>> components) Sets a List of components as this set's contents.void
setDependencies
(List<ComponentDependency> dependencies) Sets a List of dependencies as this set's component dependencies.void
Sets the identifier of this set.void
setIsolatedRealm
(boolean isolatedRealm) Sets that this set of components may be in an isolated classrealm.void
toString()
-
Constructor Details
-
ComponentSetDescriptor
public ComponentSetDescriptor()
-
-
Method Details
-
getComponents
Returns a list of components in this set.- Returns:
- a list of components
-
addComponentDescriptor
Add a new ComponentDescriptor to this set.- Parameters:
cd
- the ComponentDescriptor to add
-
setComponents
Sets a List of components as this set's contents.- Parameters:
components
- the List of components to set
-
getDependencies
Returns a List of dependencies of this set of components.- Returns:
- a List of dependencies of this set of components
-
addDependency
Add a depenency to this set's contents.- Parameters:
cd
- the ComponentDependency to add
-
setDependencies
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
Returns the identifier of this set.- Returns:
- the identifier of this set
-
setId
Sets the identifier of this set.- Parameters:
id
- the identifier to set
-
toString
-
getSource
-
setSource
-