View Javadoc

1   /*
2    * Copyright 2013 smartics, Kronseder & Reiner GmbH
3    *
4    * Licensed under the Apache License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    *
8    *     http://www.apache.org/licenses/LICENSE-2.0
9    *
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   */
16  package de.smartics.maven.plugin.jboss.modules.aether;
17  
18  import org.sonatype.aether.collection.DependencyTraverser;
19  
20  /**
21   * Generates dependency traversers.
22   */
23  public interface DependencyTraverserGenerator
24  {
25    // ********************************* Fields *********************************
26  
27    // --- constants ------------------------------------------------------------
28  
29    // ****************************** Initializer *******************************
30  
31    // ****************************** Inner Classes *****************************
32  
33    // ********************************* Methods ********************************
34  
35    // --- get&set --------------------------------------------------------------
36  
37    // --- business -------------------------------------------------------------
38  
39    /**
40     * Creates a dependency traverser to prune dependency branches that are
41     * excluded as dependencies or skipped as modules.
42     *
43     * @param delegate the traverse to delegate to after own check is not
44     *          rejecting.
45     * @return the traverser.
46     * @throws NullPointerException if {@code delegate} is <code>null</code>.
47     */
48    DependencyTraverser createDependencyTraverser(DependencyTraverser delegate)
49      throws NullPointerException;
50  
51    // --- object basics --------------------------------------------------------
52  
53  }