View Javadoc

1   package org.apache.onami.autobind.install;
2   
3   /*
4    * Licensed to the Apache Software Foundation (ASF) under one or more
5    * contributor license agreements.  See the NOTICE file distributed with
6    * this work for additional information regarding copyright ownership.
7    * The ASF licenses this file to You under the Apache License, Version 2.0
8    * (the "License"); you may not use this file except in compliance with
9    * 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, software
14   * distributed under the License is distributed on an "AS IS" BASIS,
15   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16   * See the License for the specific language governing permissions and
17   * limitations under the License.
18   */
19  
20  import java.util.LinkedList;
21  import java.util.List;
22  
23  public enum BindingStage
24  {
25  
26      INTERNAL,
27      BOOT_BEFORE,
28      BOOT,
29      BOOT_POST,
30      BINDING_BEFORE,
31      BINDING,
32      BINDING_POST,
33      INSTALL_BEFORE,
34      INSTALL,
35      INSTALL_POST,
36      BUILD_BEFORE,
37      BUILD,
38      BUILD_POST,
39      IGNORE;
40  
41      public static final List<BindingStage> ORDERED = new LinkedList<BindingStage>();
42  
43      static
44      {
45          ORDERED.add( INTERNAL );
46          ORDERED.add( BOOT_BEFORE );
47          ORDERED.add( BOOT );
48          ORDERED.add( BOOT_POST );
49          ORDERED.add( BINDING_BEFORE );
50          ORDERED.add( BINDING );
51          ORDERED.add( BINDING_POST );
52          ORDERED.add( INSTALL_BEFORE );
53          ORDERED.add( INSTALL );
54          ORDERED.add( INSTALL_POST );
55          ORDERED.add( BUILD_BEFORE );
56          ORDERED.add( BUILD );
57          ORDERED.add( BUILD_POST );
58      }
59  
60  }