KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > rift > coad > lib > deployment > JMXBeanInfo


1 /*
2  * CoadunationLib: The coaduntion implementation library.
3  * Copyright (C) 2006 Rift IT Contracting
4  *
5  * This library is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Lesser General Public
7  * License as published by the Free Software Foundation; either
8  * version 2.1 of the License, or (at your option) any later version.
9  *
10  * This library is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  * Lesser General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public
16  * License along with this library; if not, write to the Free Software
17  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18  *
19  * XMLConfigurationException.java
20  *
21  * JMXBeanInfo.java
22  *
23  * The JMX object responsible for storing the bean information.
24  */

25
26 package com.rift.coad.lib.deployment;
27
28 // java imports
29
import java.util.List JavaDoc;
30 import java.util.ArrayList JavaDoc;
31
32 /**
33  * The JMX object responsible for storing the bean information.
34  *
35  * @author Brett Chaldecott
36  */

37 public class JMXBeanInfo extends BeanInfo {
38     
39     // class private member variables
40
private String JavaDoc objectName = null;
41     
42     /**
43      * Creates a new instance of JMXBeanInfo
44      */

45     public JMXBeanInfo() {
46     }
47     
48     
49     /**
50      * The getter for the object name.
51      *
52      * @return The name of the object.
53      */

54     public String JavaDoc getObjectName() {
55         return objectName;
56     }
57     
58     
59     /**
60      * The method is responsible for setting the object name.
61      *
62      * @param objectName The name of the object to set.
63      */

64     public void setObjectName(String JavaDoc objectName) {
65         this.objectName = objectName;
66     }
67     
68     
69     /**
70      * This method will return true if the object is initialized and false if it
71      * is not.
72      *
73      * @return TRUE if initialized and FALSE if not.
74      */

75     public boolean isInitialized() {
76         if (objectName != null) {
77             return super.isInitialized();
78         }
79         return false;
80     }
81 }
82
Popular Tags