KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > enterprise > deployment > backend > DeploymentEventType


1 /*
2  * The contents of this file are subject to the terms
3  * of the Common Development and Distribution License
4  * (the License). You may not use this file except in
5  * compliance with the License.
6  *
7  * You can obtain a copy of the license at
8  * https://glassfish.dev.java.net/public/CDDLv1.0.html or
9  * glassfish/bootstrap/legal/CDDLv1.0.txt.
10  * See the License for the specific language governing
11  * permissions and limitations under the License.
12  *
13  * When distributing Covered Code, include this CDDL
14  * Header Notice in each file and include the License file
15  * at glassfish/bootstrap/legal/CDDLv1.0.txt.
16  * If applicable, add the following below the CDDL Header,
17  * with the fields enclosed by brackets [] replaced by
18  * you own identifying information:
19  * "Portions Copyrighted [year] [name of copyright owner]"
20  *
21  * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
22  */

23
24 /*
25  * DeploymentEventType.java
26  *
27  * Created on June 17, 2003, 12:38 PM
28  * @author sandhyae
29  * <BR> <I>$Source: /cvs/glassfish/appserv-core/src/java/com/sun/enterprise/deployment/backend/DeploymentEventType.java,v $
30  *
31  */

32
33 package com.sun.enterprise.deployment.backend;
34
35
36 /**
37  *
38  * @author Sandhya E
39  */

40 public class DeploymentEventType {
41      
42     
43     /** Creates a new instance of DeploymentEventType */
44     private DeploymentEventType(String JavaDoc theName) {
45         assert theName != null;
46     name = theName;
47     }
48         
49     ///////////////////////////////////////////////////////////////////////////
50

51     public String JavaDoc toString() {
52         return name;
53     }
54     
55     //////////////////////////////////////////////////////////////////////////
56
// Event types
57
public static final int PRE_DEPLOY = 1;
58     public static final int POST_DEPLOY = 2;
59
60     public static final int PRE_UNDEPLOY = 3;
61     public static final int POST_UNDEPLOY = 4;
62    
63     public static final int PRE_ASSOCIATE = 11;
64     public static final int POST_ASSOCIATE = 12;
65     
66     public static final int PRE_APP_START = 5;
67     public static final int POST_APP_START = 6;
68     
69     public static final int PRE_APP_STOP = 7;
70     public static final int POST_APP_STOP = 8;
71     
72     public static final int PRE_DISASSOCIATE = 9;
73     public static final int POST_DISASSOCIATE = 10;
74     
75     public static final int PRE_RA_START = 11;
76     public static final int POST_RA_START = 12;
77
78     public static final int PRE_RA_STOP = 13;
79     public static final int POST_RA_STOP = 14;
80
81     public static final int PRE_RES_CREATE = 15;
82     public static final int POST_RES_CREATE = 16;
83
84     public static final int PRE_RES_DELETE = 17;
85     public static final int POST_RES_DELETE = 18;
86
87     private final String JavaDoc name;
88 }
89
Popular Tags