KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > enterprise > admin > meta > MBeanMetaConstants


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  * $Id: MBeanMetaConstants.java,v 1.5 2006/03/12 01:26:56 jluehe Exp $
26  * @author: alexkrav
27  *
28  * $Log: MBeanMetaConstants.java,v $
29  * Revision 1.5 2006/03/12 01:26:56 jluehe
30  * Renamed AS's org.apache.commons.* to com.sun.org.apache.commons.*, to avoid collisions with org.apache.commons.* packages bundled by webapps.
31  *
32  * Tests run: QL, Servlet TCK
33  *
34  * Revision 1.4 2005/12/25 03:47:36 tcfujii
35  * Updated copyright text and year.
36  *
37  * Revision 1.3 2005/08/16 22:19:31 kravtch
38  * M3: 1. ConfigMBeans: Support for generic getXXXNamesList() operation (request from management-rules).
39  * 2. MBeanRegistry: support for getElementPrintName() to provide readable element's description for validator's messages
40  * Submitted by: kravtch
41  * Reviewed by: Shreedhar
42  * Affected modules admin-core/admin
43  * Tests passed: QLT/EE + devtests
44  *
45  * Revision 1.2 2005/06/27 21:19:43 tcfujii
46  * Issue number: CDDL header updates.
47  *
48  * Revision 1.1.1.1 2005/05/27 22:52:02 dpatil
49  * GlassFish first drop
50  *
51  * Revision 1.10 2004/11/14 07:04:20 tcfujii
52  * Updated copyright text and/or year.
53  *
54  * Revision 1.9 2004/06/04 19:13:59 kravtch
55  * Reviewer: Nazrul
56  * Support for "dynamicallyReconfigurable" MBean descriptor field is added to infrastructure.
57  * Tests passed: QLT PE/EE
58  *
59  * Revision 1.8 2004/03/02 18:26:32 kravtch
60  * MBean's Descriptor field ElementChangeEvent support added (Constant, get method).
61  * MBeanRegistryFactory.setAdminMBeanRegistry() added for tester
62  *
63  * Revision 1.7 2004/02/20 03:56:14 qouyang
64  *
65  *
66  * First pass at code merge.
67  *
68  * Details for the merge will be published at:
69  * http://javaweb.sfbay.sun.com/~qouyang/workspace/PE8FCSMerge/02202004/
70  *
71  * Revision 1.6.4.2 2004/02/02 07:25:18 tcfujii
72  * Copyright updates notices; reviewer: Tony Ng
73  *
74  * Revision 1.6.4.1 2003/12/23 01:51:45 kravtch
75  * Bug #4959186
76  * Reviewer: Sridatta
77  * Checked in PE8FCS_BRANCH
78  * (1) admin/admin-core/admin-cli/admin-gui/appserv-core/assembly-tool: switch to new domain name "ias:" -> "com.sun.appserv"
79  * (2) admin-core and admin-cli: switch to "dashed" attribute names
80  * (3) admin-core: support both "dashed"/"underscored" names for get/setAttributes
81  * (4) admin-gui: hook for reverse converting attribute names (temporary hack);
82  *
83  * Revision 1.6 2003/10/11 00:00:03 kravtch
84  * Bug 4933034
85  * Reviewer: Abhijit
86  * New field in attribute descriptor marks attributes which allows empty values.
87  * admin-descrptors file modified for "http-listener" mbean, adding:
88  * <attribute name="server_name" >
89  * <descriptor>
90  * <field name="emptyValueAllowed" value="true" />
91  * </descriptor>
92  * </attribute>
93  * BaseConfigMBean class modified to analyse this flag and properly perform setAttribute().
94  *
95  * Revision 1.5 2003/08/07 00:41:06 kravtch
96  * - new DTD related changes;
97  * - properties support added;
98  * - getDefaultAttributeValue() implemented for config MBeans;
99  * - merge Jsr77 and config activity in runtime mbeans;
100  *
101  * Revision 1.4 2003/07/18 20:14:44 kravtch
102  * 1. ALL config mbeans are now covered by descriptors.xml
103  * 2. new infrastructure for runtime mbeans is added
104  * 3. generic constructors added to jsr77Mdl beans (String[])
105  * 4. new test cases are added to admintest
106  * 5. MBeanRegistryFactory has now different methods to obtain admin/runtime registries
107  * 6. runtime-descriptors xml-file is added to build
108  *
109  * Revision 1.3 2003/06/25 20:03:40 kravtch
110  * 1. java file headers modified
111  * 2. properties handling api is added
112  * 3. fixed bug for xpathes containing special symbols;
113  * 4. new testcases added for jdbc-resource
114  * 5. introspector modified by not including base classes operations;
115  *
116  *
117 */

118
119 package com.sun.enterprise.admin.meta;
120
121 import java.util.Enumeration JavaDoc;
122 import java.util.Hashtable JavaDoc;
123 import java.util.List JavaDoc;
124 import java.text.CharacterIterator JavaDoc;
125 import java.text.StringCharacterIterator JavaDoc;
126
127 import java.lang.reflect.Method JavaDoc;
128 import java.lang.reflect.Modifier JavaDoc;
129
130 import com.sun.org.apache.commons.modeler.ManagedBean;
131 import com.sun.org.apache.commons.modeler.FeatureInfo;
132 import com.sun.org.apache.commons.modeler.FieldInfo;
133 import com.sun.org.apache.commons.modeler.AttributeInfo;
134 import com.sun.org.apache.commons.modeler.OperationInfo;
135 import com.sun.org.apache.commons.modeler.ParameterInfo;
136
137 //JMX imports
138
import javax.management.Descriptor JavaDoc;
139 import javax.management.ObjectName JavaDoc;
140 import javax.management.AttributeList JavaDoc;
141 import com.sun.enterprise.config.ConfigBeansFactory;
142
143 /**
144  *
145  */

146 public interface MBeanMetaConstants
147 {
148     final public static char ATTRIBUTE_NAME_DELIMITER_SYMBOL = '-';
149
150     //
151
final public static String JavaDoc JSR77BEAN_FIELD_NAME = "Jsr77MdlBeanClass";
152     final public static String JavaDoc CLINAME_FIELD_NAME = "CLIName";
153     final public static String JavaDoc XPATH_FIELD_NAME = "xpath";
154     final public static String JavaDoc OBJECTNAME_FIELD_NAME = "ObjectName";
155     final public static String JavaDoc PRINTNAME_FIELD_NAME = "printName";
156
157     //descriptor
158
final public static String JavaDoc GETTER_FIELD_NAME = "getter";
159     final public static String JavaDoc SETTER_FIELD_NAME = "setter";
160     
161     final public static String JavaDoc CHILD_FIELD_NAME = "child";
162     final public static String JavaDoc MULTI_FIELD_NAME = "multi";
163     final public static String JavaDoc NMTYPE_FIELD_NAME = "namingType";
164     final public static String JavaDoc NMLOCATION_FIELD_NAME = "namingLocation";
165     final public static String JavaDoc DOMAIN_FIELD_NAME = "domainName";
166     final public static String JavaDoc EMPTYVALUEALLOWED_FIELD_NAME = "emptyValueAllowed";
167     final public static String JavaDoc ELEMENTCHANGEEVENT_FIELD_NAME = "elementChangeEvent";
168     final public static String JavaDoc DYNAMICALLY_RECONFIGURABLE_LIST_FIELD_NAME = "dynamicallyReconfigurable";
169
170     final public static String JavaDoc WHERE_LOCATED_FIELD_NAME = "bean";
171     final public static String JavaDoc LOCATED_IN_MBEAN = "MBEAN";
172     final public static String JavaDoc LOCATED_IN_CONFIGBEAN = "CBEAN";
173     final public static String JavaDoc LOCATED_IN_RUNTIMEBEAN = "RBEAN";
174
175     final public static String JavaDoc GET_LISTNAMES_OP_SUFFIX = "NamesList";
176
177     final public static String JavaDoc CONFIG_BEAN_REF = "ConfigBeanReference";
178     final public static String JavaDoc JSR77_MODEL_BEAN_REF = "Jsr77ModelBeanReference";
179     
180     //introspector modes
181
final static int EXPOSE_GETTERS = 0x0001;
182     final static int EXPOSE_SETTERS = 0x0002;
183     final static int EXPOSE_CREATECHILD = 0x0004;
184     final static int EXPOSE_GETCHILD = 0x0008;
185     final static int EXPOSE_DESTROYCHILD = 0x0010;
186
187     final static int EXPOSE_ALL = 0xFFFF;
188     final static int EXPOSE_RUNTIME_WITH_MODEL = EXPOSE_GETTERS;
189     final static int EXPOSE_RUNTIME_WITHOUT_MODEL = (EXPOSE_GETTERS+EXPOSE_GETCHILD);
190 }
191
Popular Tags