KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > appserv > management > util > jmx > Acronyms


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/util/jmx/Acronyms.java,v 1.3 2005/12/25 03:51:19 tcfujii Exp $
26  * $Revision: 1.3 $
27  * $Date: 2005/12/25 03:51:19 $
28  */

29
30
31 package com.sun.appserv.management.util.jmx;
32
33 import java.util.Map JavaDoc;
34 import java.util.HashMap JavaDoc;
35
36 import com.sun.appserv.management.base.XTypes;
37 import com.sun.appserv.management.util.misc.MapUtil;
38
39
40
41 /**
42  */

43 public final class Acronyms
44 {
45     private static Map JavaDoc<String JavaDoc,String JavaDoc> MAP = null;
46     
47     private static final String JavaDoc[] MAPPINGS = new String JavaDoc[]
48     {
49         "Cmp", "CMP",
50         "CmpContainer", "CMPContainer",
51         "Corba", "CORBA",
52         "EjbContainer", "EJBContainer",
53         "HttpListeners", "HTTPListeners",
54         "HttpService", "HTTPService",
55         "Jacc", "JACC",
56         "Jaxr", "JAXR",
57         "Jaxrpc", "JAXRPC",
58         "JdbcConnectionPool", "JDBCConnectionPool",
59         "JDBCResourceJndiName", "JDBCResourceJNDIName",
60         "Jdo", "JDO",
61         "Jms", "JMS",
62         "JndiName", "JNDIName",
63         "Jta", "JTA",
64         "Jts", "JTS",
65         "JvmOptions", "JVMOptions",
66         "MdbContainer", "MDBContainer",
67         "Orb", "ORB",
68         "RmicOptions", "RMICOptions",
69         "Saaj", "SAAJ",
70         "Ssl2Ciphers", "SSL2Ciphers",
71         "Ssl2Enabled", "SSL2Enabled",
72         "Ssl3Enabled", "SSL3Enabled",
73         "Ssl3TlsCiphers", "SSL3TLSCiphers",
74         "SystemJmxConnectorName", "SystemJMXConnectorName",
75         "TlsEnabled", "TLSEnabled",
76         "TlsRollbackEnabled", "TLSRollbackEnabled",
77         "SfsbPersistenceType", "SFSBPersistenceType",
78         "SfsbHaPersistenceType", "SFSBHAPersistenceType",
79         "SfsbCheckpointEnabled", "SFSBCheckpointEnabled",
80         "SfsbQuickCheckpointEnabled", "SFSBQuickCheckpointEnabled",
81         "SfsbStorePoolName", "SFSBStorePoolName",
82         "SsoFailoverEnabled", "SSOFailoverEnabled",
83         "HttpSessionStorePoolName", "HTTPSessionStorePoolName",
84         "DnsLookupEnabled", "DNSLookupEnabled",
85         "SslEnabled", "SSLEnabled",
86         "ThreadPoolIds", "ThreadPoolIDs",
87         "JndiLookupName", "JNDILookupName",
88         };
89     
90     /**
91         Return a Map whose keys are acronyms (their case should be ignored),
92         and whose values are the proper capitalization.
93      */

94         public static synchronized Map JavaDoc<String JavaDoc,String JavaDoc>
95     getMap()
96     {
97         if ( MAP == null )
98         {
99             MAP = MapUtil.newMap( MAPPINGS );
100         }
101         return( MAP );
102     }
103 }
104
105
Popular Tags