KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > appserv > management > j2ee > J2EETypes


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 package com.sun.appserv.management.j2ee;
25
26 import java.util.Set JavaDoc;
27 import java.util.Collections JavaDoc;
28
29 import com.sun.appserv.management.base.AMX;
30
31 import com.sun.appserv.management.util.misc.GSetUtil;
32
33 /**
34     See JSR 77.3-1.<br>
35     Specific extensions to the JSR 77 model include:
36     <ul>
37     <li>{@link #J2EE_CLUSTER}</li>
38     </ul>
39     @see J2EETypesMapper
40     @see com.sun.appserv.management.base.XTypes
41  */

42 public final class J2EETypes
43 {
44     /**
45         The javax.management.ObjectName property key denoting the type of the MBean.
46      */

47     public final static String JavaDoc J2EE_TYPE_KEY = AMX.J2EE_TYPE_KEY;
48     
49     /**
50         The ObjectName property key denoting the name of the MBean.
51      */

52     public final static String JavaDoc NAME_KEY = AMX.NAME_KEY;
53     
54     public final static String JavaDoc J2EE_DOMAIN = "J2EEDomain";
55     public final static String JavaDoc J2EE_SERVER = "J2EEServer";
56     public final static String JavaDoc J2EE_CLUSTER = "X-J2EECluster";
57     public final static String JavaDoc J2EE_APPLICATION = "J2EEApplication";
58     public final static String JavaDoc APP_CLIENT_MODULE = "AppClientModule";
59     public final static String JavaDoc EJB_MODULE = "EJBModule";
60     public final static String JavaDoc WEB_MODULE = "WebModule";
61     public final static String JavaDoc RESOURCE_ADAPTER_MODULE = "ResourceAdapterModule";
62     public final static String JavaDoc RESOURCE_ADAPTER = "ResourceAdapter";
63     public final static String JavaDoc ENTITY_BEAN = "EntityBean";
64     public final static String JavaDoc STATEFUL_SESSION_BEAN = "StatefulSessionBean";
65     public final static String JavaDoc STATELESS_SESSION_BEAN = "StatelessSessionBean";
66     public final static String JavaDoc MESSAGE_DRIVEN_BEAN = "MessageDrivenBean";
67     public final static String JavaDoc SERVLET = "Servlet";
68     public final static String JavaDoc JAVA_MAIL_RESOURCE = "JavaMailResource";
69     public final static String JavaDoc JCA_RESOURCE = "JCAResource";
70     public final static String JavaDoc JCA_CONNECTION_FACTORY = "JCAConnectionFactory";
71     public final static String JavaDoc JCA_MANAGED_CONNECTION_FACTORY = "JCAManagedConnectionFactory";
72     public final static String JavaDoc JDBC_RESOURCE = "JDBCResource";
73     public final static String JavaDoc JDBC_DATA_SOURCE = "JDBCDataSource";
74     public final static String JavaDoc JDBC_DRIVER = "JDBCDriver";
75     public final static String JavaDoc JMS_RESOURCE = "JMSResource";
76     public final static String JavaDoc JNDI_RESOURCE = "JNDIResource";
77     public final static String JavaDoc JTA_RESOURCE = "JTAResource";
78     public final static String JavaDoc RMI_IIOP_RESOURCE = "RMI_IIOPResource";
79     public final static String JavaDoc URL_RESOURCE = "URL_Resource";
80     public final static String JavaDoc JVM = "JVM";
81     
82     
83     /**
84         @since AppServer 9.0
85      */

86     public final static String JavaDoc WEB_SERVICE_ENDPOINT ="WebServiceEndpoint";
87     
88     /** @deprecated */
89     public final static String JavaDoc WEB_SERVICE = WEB_SERVICE_ENDPOINT;
90     
91     /**
92         Set consisting of all standard JSR 77 j2eeTypes
93      */

94     public static final Set JavaDoc ALL_STD =
95         GSetUtil.newUnmodifiableStringSet(
96         J2EE_DOMAIN,
97         J2EE_SERVER,
98         J2EE_APPLICATION,
99         APP_CLIENT_MODULE,
100         EJB_MODULE,
101         WEB_MODULE,
102         RESOURCE_ADAPTER_MODULE,
103         ENTITY_BEAN,
104         STATEFUL_SESSION_BEAN,
105         STATELESS_SESSION_BEAN,
106         MESSAGE_DRIVEN_BEAN,
107         SERVLET,
108         JAVA_MAIL_RESOURCE,
109         JCA_RESOURCE,
110         JCA_CONNECTION_FACTORY,
111         JCA_MANAGED_CONNECTION_FACTORY,
112         JDBC_RESOURCE,
113         JDBC_DATA_SOURCE,
114         JDBC_DRIVER,
115         JMS_RESOURCE,
116         JNDI_RESOURCE,
117         JTA_RESOURCE,
118         RMI_IIOP_RESOURCE,
119         URL_RESOURCE,
120         JVM,
121         WEB_SERVICE_ENDPOINT );
122
123
124 }
125
Popular Tags