Class DefaultClasspathTransformation
- java.lang.Object
-
- org.apache.maven.repository.metadata.DefaultClasspathTransformation
-
- All Implemented Interfaces:
ClasspathTransformation
@Component(role=ClasspathTransformation.class) public class DefaultClasspathTransformation extends java.lang.Object implements ClasspathTransformation
default implementation of the metadata classpath transformer- Author:
- Oleg Gusakov
-
-
Field Summary
-
Fields inherited from interface org.apache.maven.repository.metadata.ClasspathTransformation
ROLE
-
-
Constructor Summary
Constructors Constructor Description DefaultClasspathTransformation()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ClasspathContainertransform(MetadataGraph dirtyGraph, ArtifactScopeEnum scope, boolean resolve)Transform Graph into a Collection of metadata objects that could serve as a classpath for a particular scope
-
-
-
Method Detail
-
transform
public ClasspathContainer transform(MetadataGraph dirtyGraph, ArtifactScopeEnum scope, boolean resolve) throws MetadataGraphTransformationException
Description copied from interface:ClasspathTransformationTransform Graph into a Collection of metadata objects that could serve as a classpath for a particular scope- Specified by:
transformin interfaceClasspathTransformation- Parameters:
dirtyGraph- - dependency graphscope- - which classpath to extractresolve- - whether to resolve artifacts.- Returns:
- Collection of metadata objects in the linked subgraph of the graph which contains the graph.getEntry() vertice
- Throws:
MetadataGraphTransformationException
-
-