01: /*
02: * CoadunationLib: The coaduntion implementation library.
03: * Copyright (C) 2006 Rift IT Contracting
04: *
05: * This library is free software; you can redistribute it and/or
06: * modify it under the terms of the GNU Lesser General Public
07: * License as published by the Free Software Foundation; either
08: * version 2.1 of the License, or (at your option) any later version.
09: *
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;
30: import java.util.ArrayList;
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 objectName = null;
41:
42: /**
43: * Creates a new instance of JMXBeanInfo
44: */
45: public JMXBeanInfo() {
46: }
47:
48: /**
49: * The getter for the object name.
50: *
51: * @return The name of the object.
52: */
53: public String getObjectName() {
54: return objectName;
55: }
56:
57: /**
58: * The method is responsible for setting the object name.
59: *
60: * @param objectName The name of the object to set.
61: */
62: public void setObjectName(String objectName) {
63: this .objectName = objectName;
64: }
65:
66: /**
67: * This method will return true if the object is initialized and false if it
68: * is not.
69: *
70: * @return TRUE if initialized and FALSE if not.
71: */
72: public boolean isInitialized() {
73: if (objectName != null) {
74: return super .isInitialized();
75: }
76: return false;
77: }
78: }
|