View Javadoc

1   /*
2    * Copyright 2012-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.bugzilla;
17  
18  import org.apache.maven.project.MavenProject;
19  
20  /**
21   * Base class of Mojo helpers.
22   */
23  abstract class AbstractMojoHelper
24  {
25    // ********************************* Fields *********************************
26  
27    // --- constants ------------------------------------------------------------
28  
29    // --- members --------------------------------------------------------------
30  
31    /**
32     * The Maven project.
33     */
34    protected final MavenProject project;
35  
36    /**
37     * The helper to create commands.
38     */
39    protected final MavenCommandFactory commandFactory;
40  
41    /**
42     * The console to execute commands.
43     */
44    protected final Console console;
45  
46    // ****************************** Initializer *******************************
47  
48    // ****************************** Constructors ******************************
49  
50    /**
51     * Default constructor.
52     *
53     * @param project the Maven project.
54     * @param commandFactory the helper to create commands.
55     * @param console the console to execute commands.
56     */
57    protected AbstractMojoHelper(final MavenProject project,
58        final MavenCommandFactory commandFactory, final Console console)
59    {
60      this.project = project;
61      this.commandFactory = commandFactory;
62      this.console = console;
63    }
64  
65    // ****************************** Inner Classes *****************************
66  
67    // ********************************* Methods ********************************
68  
69    // --- init -----------------------------------------------------------------
70  
71    // --- get&set --------------------------------------------------------------
72  
73    // --- business -------------------------------------------------------------
74  
75    // --- object basics --------------------------------------------------------
76  
77  }