KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > appserv > management > util > jmx > stringifier > StringifierRegistryIniter


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/stringifier/StringifierRegistryIniter.java,v 1.5 2005/12/25 03:51:40 tcfujii Exp $
26  * $Revision: 1.5 $
27  * $Date: 2005/12/25 03:51:40 $
28  */

29  
30 package com.sun.appserv.management.util.jmx.stringifier;
31
32 import javax.management.*;
33 import javax.management.modelmbean.*;
34 import javax.management.openmbean.CompositeData JavaDoc;
35 import javax.management.openmbean.CompositeDataSupport JavaDoc;
36 import javax.management.openmbean.TabularData JavaDoc;
37 import javax.management.openmbean.TabularDataSupport JavaDoc;
38
39 import com.sun.appserv.management.util.jmx.stringifier.*;
40
41
42 import javax.management.j2ee.statistics.Stats JavaDoc;
43 import javax.management.j2ee.statistics.Statistic JavaDoc;
44 import com.sun.appserv.management.util.j2ee.stringifier.*;
45
46 import com.sun.appserv.management.util.stringifier.StringifierRegistry;
47
48 /**
49     Registers all included stringifiers with the default registry.
50  */

51 public class StringifierRegistryIniter extends
52     com.sun.appserv.management.util.stringifier.StringifierRegistryIniterImpl
53 {
54         public
55     StringifierRegistryIniter( StringifierRegistry registry )
56     {
57         super( registry );
58         
59         add( ObjectName.class, ObjectNameStringifier.DEFAULT );
60         add( MBeanInfo.class, MBeanInfoStringifier.DEFAULT );
61         add( ModelMBeanInfo.class, ModelMBeanInfoStringifier.DEFAULT );
62         
63         add( MBeanOperationInfo.class, MBeanOperationInfoStringifier.DEFAULT );
64         add( ModelMBeanOperationInfo.class, ModelMBeanOperationInfoStringifier.DEFAULT );
65         
66         add( MBeanAttributeInfo.class, MBeanAttributeInfoStringifier.DEFAULT );
67         add( ModelMBeanAttributeInfo.class, ModelMBeanAttributeInfoStringifier.DEFAULT );
68         
69         add( MBeanParameterInfo.class, MBeanParameterInfoStringifier.DEFAULT );
70         
71         add( MBeanNotificationInfo.class, MBeanNotificationInfoStringifier.DEFAULT );
72         add( ModelMBeanNotificationInfo.class, ModelMBeanNotificationInfoStringifier.DEFAULT );
73         
74         add( MBeanConstructorInfo.class, MBeanConstructorInfoStringifier.DEFAULT );
75         add( ModelMBeanConstructorInfo.class, ModelMBeanConstructorInfoStringifier.DEFAULT );
76         
77         add( Attribute.class, AttributeStringifier.DEFAULT );
78         add( AttributeList.class, AttributeListStringifier.DEFAULT );
79         
80         add( Notification.class, NotificationStringifier.DEFAULT );
81         add( AttributeChangeNotification.class, AttributeChangeNotificationStringifier.DEFAULT );
82         add( MBeanServerNotification.class, MBeanServerNotificationStringifier.DEFAULT );
83         
84         
85         add( CompositeData JavaDoc.class, CompositeDataStringifier.DEFAULT );
86         add( CompositeDataSupport JavaDoc.class, CompositeDataStringifier.DEFAULT );
87         add( TabularData JavaDoc.class, TabularDataStringifier.DEFAULT );
88         add( TabularDataSupport JavaDoc.class, TabularDataStringifier.DEFAULT );
89         
90         try
91         {
92             add( Stats JavaDoc.class, StatsStringifier.DEFAULT );
93             add( Statistic JavaDoc.class, StatisticStringifier.DEFAULT );
94         }
95         catch( Throwable JavaDoc t )
96         {
97         }
98     }
99 }
100
101
102
103
Popular Tags