View Javadoc

1   package org.apache.tomcat.maven.common.run;
2   /*
3    * Licensed to the Apache Software Foundation (ASF) under one
4    * or more contributor license agreements.  See the NOTICE file
5    * distributed with this work for additional information
6    * regarding copyright ownership.  The ASF licenses this file
7    * to you under the Apache License, Version 2.0 (the
8    * "License"); you may not use this file except in compliance
9    * with the License.  You may obtain a copy of the License at
10   *
11   *   http://www.apache.org/licenses/LICENSE-2.0
12   *
13   * Unless required by applicable law or agreed to in writing,
14   * software distributed under the License is distributed on an
15   * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16   * KIND, either express or implied.  See the License for the
17   * specific language governing permissions and limitations
18   * under the License.
19   */
20  
21  import org.apache.maven.artifact.Artifact;
22  import org.apache.maven.plugin.logging.Log;
23  import org.apache.maven.project.MavenProject;
24  
25  import java.util.Set;
26  
27  /**
28   * @author Olivier Lamy
29   * @since 2.0
30   */
31  public class ClassLoaderEntriesCalculatorRequest
32  {
33      private MavenProject mavenProject;
34  
35      private Set<Artifact> dependencies;
36  
37      private Log log;
38  
39      private boolean addWarDependenciesInClassloader;
40  
41      private boolean useTestClassPath;
42  
43      public MavenProject getMavenProject()
44      {
45          return mavenProject;
46      }
47  
48      public ClassLoaderEntriesCalculatorRequest setMavenProject( MavenProject mavenProject )
49      {
50          this.mavenProject = mavenProject;
51          return this;
52      }
53  
54      public Set<Artifact> getDependencies()
55      {
56          return dependencies;
57      }
58  
59      public ClassLoaderEntriesCalculatorRequest setDependencies( Set<Artifact> dependencies )
60      {
61          this.dependencies = dependencies;
62          return this;
63      }
64  
65      public Log getLog()
66      {
67          return log;
68      }
69  
70      public ClassLoaderEntriesCalculatorRequest setLog( Log log )
71      {
72          this.log = log;
73          return this;
74      }
75  
76      public boolean isAddWarDependenciesInClassloader()
77      {
78          return addWarDependenciesInClassloader;
79      }
80  
81      public ClassLoaderEntriesCalculatorRequest setAddWarDependenciesInClassloader(
82          boolean addWarDependenciesInClassloader )
83      {
84          this.addWarDependenciesInClassloader = addWarDependenciesInClassloader;
85          return this;
86      }
87  
88      public boolean isUseTestClassPath()
89      {
90          return useTestClassPath;
91      }
92  
93      public ClassLoaderEntriesCalculatorRequest setUseTestClassPath( boolean useTestClassPath )
94      {
95          this.useTestClassPath = useTestClassPath;
96          return this;
97      }
98  
99  }