Source Code Cross Referenced for MBeanInfo.java in  » JMX » jfoxmx » javax » management » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » JMX » jfoxmx » javax.management 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        /* JFox, the OpenSource J2EE Application Server
002:         *
003:         * Copyright (C) 2002 huihoo.org
004:         * Distributable under GNU LGPL license
005:         * See the GNU Lesser General Public License for more details.
006:         */
007:
008:        package javax.management;
009:
010:        import java.io.Serializable;
011:
012:        /**
013:         * 
014:         * @author <a href="mailto:young_yy@hotmail.org">Young Yang</a>
015:         */
016:
017:        public class MBeanInfo implements  Cloneable, Serializable {
018:
019:            /**
020:             * The human readable description of the class.
021:             */
022:            private String description = null;
023:
024:            /**
025:             * The MBean qualified name.
026:             */
027:            private String className = null;
028:            /**
029:             * The MBean attribute descriptors.
030:             */
031:            private MBeanAttributeInfo[] attributes = null;
032:            /**
033:             * The MBean operation descriptors.
034:             */
035:            private MBeanOperationInfo[] operations = null;
036:
037:            /**
038:             * The MBean constructor descriptors.
039:             */
040:            private MBeanConstructorInfo[] constructors = null;
041:
042:            /**
043:             * The MBean notification descriptors.
044:             */
045:            private MBeanNotificationInfo[] notifications = null;
046:
047:            /**
048:             * Constructs an <CODE>MBeanInfo</CODE>.
049:             *
050:             * @param className The name of the Java class of the MBean described by this <CODE>MBeanInfo</CODE>.
051:             * @param description A human readable description of the MBean (optional).
052:             * @param attributes   The list of exposed attributes of the MBean.
053:             * @param constructors   The list of public constructors of the MBean.
054:             * @param operations   The list of operations of the MBean.
055:             * @param notifications   The list of notifications emitted by an MBean.
056:             *
057:             */
058:            public MBeanInfo(String className, String description,
059:                    MBeanAttributeInfo[] attributes,
060:                    MBeanConstructorInfo[] constructors,
061:                    MBeanOperationInfo[] operations,
062:                    MBeanNotificationInfo[] notifications) {
063:
064:                this .className = className;
065:                this .description = description;
066:                this .attributes = attributes;
067:                this .operations = operations;
068:                this .constructors = constructors;
069:                this .notifications = notifications;
070:            }
071:
072:            public Object clone() {
073:                try {
074:                    return super .clone();
075:                } catch (CloneNotSupportedException clonenotsupportedexception) {
076:                    return null;
077:                }
078:            }
079:
080:            /**
081:             * Returns the name of the Java class of the MBean described by
082:             * this <CODE>MBeanInfo</CODE>.
083:             */
084:            public String getClassName() {
085:                return className;
086:            }
087:
088:            /**
089:             * Returns a human readable description of the MBean.
090:             */
091:            public String getDescription() {
092:                return description;
093:            }
094:
095:            /**
096:             * Returns the list of  attributes exposed for management.
097:             * Each attribute is described by an <CODE>MBeanAttributeInfo</CODE> object.
098:             *
099:             * @return  An array of <CODE>MBeanAttributeInfo</CODE> objects.
100:             */
101:            public MBeanAttributeInfo[] getAttributes() {
102:                if (attributes != null) {
103:                    int len = attributes.length;
104:                    MBeanAttributeInfo[] res = new MBeanAttributeInfo[len];
105:                    for (int i = 0; i < len; i++) {
106:                        res[i] = (MBeanAttributeInfo) (attributes[i]).clone();
107:                    }
108:                    return res;
109:                } else {
110:                    return new MBeanAttributeInfo[0];
111:                }
112:            }
113:
114:            /**
115:             * Returns the list of operations  of the MBean.
116:             * Each operation is described by an <CODE>MBeanOperationInfo</CODE> object.
117:             *
118:             * @return  An array of <CODE>MBeanOperationInfo</CODE> objects.
119:             */
120:            public MBeanOperationInfo[] getOperations() {
121:                if (operations != null) {
122:                    int len = operations.length;
123:                    MBeanOperationInfo[] res = new MBeanOperationInfo[len];
124:                    for (int i = 0; i < len; i++) {
125:                        res[i] = (MBeanOperationInfo) (operations[i]).clone();
126:                    }
127:                    return res;
128:                } else {
129:                    return new MBeanOperationInfo[0];
130:                }
131:            }
132:
133:            /**
134:             * Returns the list of the public constructors  of the MBean.
135:             * Each constructor is described by an <CODE>MBeanConstructorInfo</CODE> object.
136:             *
137:             * @return  An array of <CODE>MBeanConstructorInfo</CODE> objects.
138:             */
139:            public MBeanConstructorInfo[] getConstructors() {
140:                if (constructors != null) {
141:                    int len = constructors.length;
142:                    MBeanConstructorInfo[] res = new MBeanConstructorInfo[len];
143:                    for (int i = 0; i < len; i++) {
144:                        res[i] = (MBeanConstructorInfo) (constructors[i])
145:                                .clone();
146:                    }
147:                    return res;
148:                } else {
149:                    return new MBeanConstructorInfo[0];
150:                }
151:            }
152:
153:            /**
154:             * Returns the list of the notifications emitted by the MBean.
155:             * Each notification is described by an <CODE>MBeanNotificationInfo</CODE> object.
156:             *
157:             * @return  An array of <CODE>MBeanNotificationInfo</CODE> objects.
158:             */
159:            public MBeanNotificationInfo[] getNotifications() {
160:                if (notifications != null) {
161:                    int len = notifications.length;
162:                    MBeanNotificationInfo[] res = new MBeanNotificationInfo[len];
163:                    for (int i = 0; i < len; i++) {
164:                        res[i] = (MBeanNotificationInfo) (notifications[i])
165:                                .clone();
166:                    }
167:                    return res;
168:                } else {
169:                    return new MBeanNotificationInfo[0];
170:                }
171:            }
172:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.