View Javadoc
1   package org.codehaus.plexus.test;
2   
3   /*
4    * Copyright 2001-2006 Codehaus Foundation.
5    *
6    * Licensed under the Apache License, Version 2.0 (the "License");
7    * you may not use this file except in compliance with the License.
8    * You may obtain a copy of the License at
9    *
10   *      http://www.apache.org/licenses/LICENSE-2.0
11   *
12   * Unless required by applicable law or agreed to in writing, software
13   * distributed under the License is distributed on an "AS IS" BASIS,
14   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15   * See the License for the specific language governing permissions and
16   * limitations under the License.
17   */
18  
19  import org.codehaus.plexus.logging.AbstractLogEnabled;
20  import org.codehaus.plexus.test.lifecycle.phase.Eeny;
21  import org.codehaus.plexus.test.lifecycle.phase.Meeny;
22  import org.codehaus.plexus.test.lifecycle.phase.Miny;
23  import org.codehaus.plexus.test.lifecycle.phase.Mo;
24  
25  /** This component implements the custom lifecycle defined by the phases
26   *
27   *  Eeny
28   *  Meeny
29   *  Miny
30   *  Mo
31   *
32   */
33  public class DefaultServiceH extends AbstractLogEnabled implements ServiceH, Eeny, Meeny, Miny, Mo {
34      public boolean eeny;
35      public boolean meeny;
36      public boolean miny;
37      public boolean mo;
38  
39      // ----------------------------------------------------------------------
40      // Lifecycle Management
41      // ----------------------------------------------------------------------
42  
43      public void eeny() {
44          eeny = true;
45      }
46  
47      public void meeny() {
48          meeny = true;
49      }
50  
51      public void miny() {
52          miny = true;
53      }
54  
55      public void mo() {
56          mo = true;
57      }
58  }