KickJava   Java API By Example, From Geeks To Geeks.

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


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  * $Header: /cvs/glassfish/admin-core/mbeanapi/src/java/com/sun/appserv/management/j2ee/J2EETypesMapper.java,v 1.4 2005/12/25 03:50:44 tcfujii Exp $
26  * $Revision: 1.4 $
27  * $Date: 2005/12/25 03:50:44 $
28  */

29  
30 package com.sun.appserv.management.j2ee;
31
32 import com.sun.appserv.management.base.TypesMapper;
33
34 import com.sun.appserv.management.DomainRoot;
35
36 /**
37     Map all types from J2EE Types to their respective MBean interfaces.
38  */

39 public final class J2EETypesMapper extends TypesMapper
40 {
41     private static J2EETypesMapper INSTANCE = null;
42     
43     
44         public static synchronized J2EETypesMapper
45     getInstance()
46     {
47         if ( INSTANCE == null )
48         {
49             INSTANCE = new J2EETypesMapper();
50         }
51         
52         return( INSTANCE );
53     }
54     
55     
56         private
57     J2EETypesMapper( )
58     {
59         super( MBEANINTERFACES );
60     }
61
62     
63     /**
64         The classes for which we need mapping (all MBeans must be included)
65      */

66     private static final Class JavaDoc[] MBEANINTERFACES =
67     {
68         J2EEDomain.class,
69         J2EEServer.class,
70         J2EECluster.class,
71         //J2EEStandaloneServer.class,
72
J2EEApplication.class,
73         AppClientModule.class,
74         EJBModule.class,
75         WebModule.class,
76         ResourceAdapterModule.class,
77         ResourceAdapter.class,
78         EntityBean.class,
79         StatefulSessionBean.class,
80         StatelessSessionBean.class,
81         MessageDrivenBean.class,
82         Servlet.class,
83         JavaMailResource.class,
84         JCAResource.class,
85         JCAConnectionFactory.class,
86         JCAManagedConnectionFactory.class,
87         JDBCResource.class,
88         JDBCDataSource.class,
89         JDBCDriver.class,
90         JMSResource.class,
91         JNDIResource.class,
92         JTAResource.class,
93         RMIIIOPResource.class,
94         URLResource.class,
95         JVM.class,
96         WebServiceEndpoint.class,
97     };
98     
99 }
100
Popular Tags