Coverage Report - org.apache.maven.artifact.transform.ArtifactTransformation
 
Classes in this File Line Coverage Branch Coverage Complexity
ArtifactTransformation
N/A
N/A
0
 
 1  
 package org.apache.maven.artifact.transform;
 2  
 
 3  
 /*
 4  
  * Licensed to the Apache Software Foundation (ASF) under one
 5  
  * or more contributor license agreements.  See the NOTICE file
 6  
  * distributed with this work for additional information
 7  
  * regarding copyright ownership.  The ASF licenses this file
 8  
  * to you under the Apache License, Version 2.0 (the
 9  
  * "License"); you may not use this file except in compliance
 10  
  * with the License.  You may obtain a copy of the License at
 11  
  *
 12  
  *  http://www.apache.org/licenses/LICENSE-2.0
 13  
  *
 14  
  * Unless required by applicable law or agreed to in writing,
 15  
  * software distributed under the License is distributed on an
 16  
  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 17  
  * KIND, either express or implied.  See the License for the
 18  
  * specific language governing permissions and limitations
 19  
  * under the License.
 20  
  */
 21  
 
 22  
 import org.apache.maven.artifact.Artifact;
 23  
 import org.apache.maven.artifact.deployer.ArtifactDeploymentException;
 24  
 import org.apache.maven.artifact.installer.ArtifactInstallationException;
 25  
 import org.apache.maven.artifact.repository.ArtifactRepository;
 26  
 import org.apache.maven.artifact.resolver.ArtifactNotFoundException;
 27  
 import org.apache.maven.artifact.resolver.ArtifactResolutionException;
 28  
 
 29  
 import java.util.List;
 30  
 
 31  
 /**
 32  
  * @author <a href="mailto:jason@maven.org">Jason van Zyl </a>
 33  
  * @version $Id: ArtifactTransformation.java,v 1.1 2005/03/03 15:37:25
 34  
  *          jvanzyl Exp $
 35  
  */
 36  
 public interface ArtifactTransformation
 37  
 {
 38  
     String ROLE = ArtifactTransformation.class.getName();
 39  
 
 40  
     /**
 41  
      * Take in a artifact and return the transformed artifact for locating in the remote repository. If no
 42  
      * transformation has occured the original artifact is returned.
 43  
      *
 44  
      * @param artifact Artifact to be transformed.
 45  
      * @param remoteRepositories the repositories to check
 46  
      * @param localRepository the local repository
 47  
      */
 48  
     void transformForResolve( Artifact artifact, List<ArtifactRepository> remoteRepositories, ArtifactRepository localRepository )
 49  
         throws ArtifactResolutionException, ArtifactNotFoundException;
 50  
 
 51  
     /**
 52  
      * Take in a artifact and return the transformed artifact for locating in the local repository. If no
 53  
      * transformation has occured the original artifact is returned.
 54  
      *
 55  
      * @param artifact Artifact to be transformed.
 56  
      * @param localRepository the local repository it will be stored in
 57  
      */
 58  
     void transformForInstall( Artifact artifact, ArtifactRepository localRepository )
 59  
         throws ArtifactInstallationException;
 60  
 
 61  
     /**
 62  
      * Take in a artifact and return the transformed artifact for distributing toa remote repository. If no
 63  
      * transformation has occured the original artifact is returned.
 64  
      *
 65  
      * @param artifact Artifact to be transformed.
 66  
      * @param remoteRepository the repository to deploy to
 67  
      * @param localRepository the local repository
 68  
      */
 69  
     void transformForDeployment( Artifact artifact, ArtifactRepository remoteRepository,
 70  
                                  ArtifactRepository localRepository )
 71  
         throws ArtifactDeploymentException;
 72  
 
 73  
 }