org.apache.maven.repository.metadata
Class DefaultClasspathTransformation

java.lang.Object
  extended by org.apache.maven.repository.metadata.DefaultClasspathTransformation
All Implemented Interfaces:
ClasspathTransformation

@Component(role=ClasspathTransformation.class)
public class DefaultClasspathTransformation
extends 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
DefaultClasspathTransformation()
           
 
Method Summary
 ClasspathContainer transform(MetadataGraph dirtyGraph, ArtifactScopeEnum scope, boolean resolve)
          Transform Graph into a Collection of metadata objects that could serve as a classpath for a particular scope
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultClasspathTransformation

public DefaultClasspathTransformation()
Method Detail

transform

public ClasspathContainer transform(MetadataGraph dirtyGraph,
                                    ArtifactScopeEnum scope,
                                    boolean resolve)
                             throws MetadataGraphTransformationException
Description copied from interface: ClasspathTransformation
Transform Graph into a Collection of metadata objects that could serve as a classpath for a particular scope

Specified by:
transform in interface ClasspathTransformation
Parameters:
dirtyGraph - - dependency graph
scope - - which classpath to extract
resolve - - whether to resolve artifacts.
Returns:
Collection of metadata objects in the linked subgraph of the graph which contains the graph.getEntry() vertice
Throws:
MetadataGraphTransformationException


Copyright © 2001-2012 The Apache Software Foundation. All Rights Reserved.