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
34      extends AbstractLogEnabled
35      implements ServiceH, Eeny, Meeny, Miny, Mo
36  {
37      public boolean eeny;
38      public boolean meeny;
39      public boolean miny;
40      public boolean mo;
41  
42      // ----------------------------------------------------------------------
43      // Lifecycle Management
44      // ----------------------------------------------------------------------
45  
46      public void eeny()
47      {
48          eeny = true;
49      }
50  
51      public void meeny()
52      {
53          meeny = true;
54      }
55  
56      public void miny()
57      {
58          miny = true;
59      }
60  
61      public void mo()
62      {
63          mo = true;
64      }
65  }