Coverage Report - org.apache.maven.archiva.repository.project.resolvers.ProjectModelResolutionListener
 
Classes in this File Line Coverage Branch Coverage Complexity
ProjectModelResolutionListener
N/A
N/A
0
 
 1  
 package org.apache.maven.archiva.repository.project.resolvers;
 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.archiva.model.ArchivaProjectModel;
 23  
 import org.apache.maven.archiva.model.VersionedReference;
 24  
 import org.apache.maven.archiva.repository.project.ProjectModelResolver;
 25  
 
 26  
 import java.util.List;
 27  
 
 28  
 /**
 29  
  * ProjectModelResolutionListener 
 30  
  *
 31  
  * @version $Id: ProjectModelResolutionListener.java 755266 2009-03-17 14:28:40Z brett $
 32  
  */
 33  
 public interface ProjectModelResolutionListener
 34  
 {
 35  
     /**
 36  
      * Indicates that the resolution process has started for a specific project.
 37  
      * 
 38  
      * @param projectRef the project reference.
 39  
      * @param resolverList the {@link List} of {@link ProjectModelResolver}'s that will be searched.
 40  
      * @see #resolutionSuccess(VersionedReference, ProjectModelResolver, ArchivaProjectModel)
 41  
      * @see #resolutionNotFound(VersionedReference, List)
 42  
      */
 43  
     public void resolutionStart( VersionedReference projectRef, List<ProjectModelResolver> resolverList );
 44  
 
 45  
     /**
 46  
      * Indicates that a resolution against a specific resolver is about 
 47  
      * to occur.
 48  
      * 
 49  
      * @param projectRef the project reference.
 50  
      * @param resolver the resolver to attempt resolution on.
 51  
      */
 52  
     public void resolutionAttempting( VersionedReference projectRef, ProjectModelResolver resolver );
 53  
     
 54  
     /**
 55  
      * Indicates that a resolution against a specific resolver resulted
 56  
      * in in a missed resolution.
 57  
      * 
 58  
      * "Miss" in this case refers to an attempt against a resolver, and that
 59  
      * resolver essentially responds with a "not found here" response.
 60  
      * 
 61  
      * @param projectRef the project reference.
 62  
      * @param resolver the resolver the attempt was made on.
 63  
      */
 64  
     public void resolutionMiss( VersionedReference projectRef, ProjectModelResolver resolver );
 65  
     
 66  
     /**
 67  
      * Indicates that a resolution against the specific resolver has
 68  
      * caused an error.
 69  
      * 
 70  
      * @param projectRef the project reference.
 71  
      * @param resolver the (optional) resolver on which the error occured.
 72  
      * @param cause the cause of the error.
 73  
      */
 74  
     public void resolutionError( VersionedReference projectRef, ProjectModelResolver resolver, Exception cause );
 75  
     
 76  
     /**
 77  
      * Indicates that a resolution process has finished, and the requested
 78  
      * projectRef has been found. 
 79  
      * 
 80  
      * @param projectRef the project reference.
 81  
      * @param resolver the resolver on which success occured.
 82  
      * @param model the resolved model. 
 83  
      * @see #resolutionStart(VersionedReference, List)
 84  
      */
 85  
     public void resolutionSuccess( VersionedReference projectRef, ProjectModelResolver resolver, ArchivaProjectModel model );
 86  
     
 87  
     /**
 88  
      * Indicates that the resolution process has finished, and the requested
 89  
      * projectRef could not be found.
 90  
      * 
 91  
      * @param projectRef the project reference.
 92  
      * @param resolverList the {@link List} of {@link ProjectModelResolver}'s that was be searched.
 93  
      * @see #resolutionStart(VersionedReference, List)
 94  
      */
 95  
     public void resolutionNotFound( VersionedReference projectRef, List<ProjectModelResolver> resolverList );
 96  
 }