01: package org.objectweb.jonas.webapp.jonasadmin.jonasmqconnect.util;
02:
03: import javax.management.ObjectName;
04:
05: public class ItemDestination implements java.io.Serializable {
06: private String name;
07: private String type;
08: private String baseName;
09: private ObjectName mbeanName;
10: private String connector;
11:
12: public ItemDestination(String name, String type, String baseName,
13: ObjectName objectName) {
14: this .name = name;
15: this .type = type;
16: this .baseName = baseName;
17: this .mbeanName = objectName;
18: this .connector = objectName.getKeyProperty("JonasMQConnector");
19: }
20:
21: /**
22: * @return Returns the name.
23: */
24: public String getName() {
25: return name;
26: }
27:
28: /**
29: * @param name The name to set.
30: */
31: public void setName(String name) {
32: this .name = name;
33: }
34:
35: /**
36: * @return Returns the type.
37: */
38: public String getType() {
39: return type;
40: }
41:
42: /**
43: * @param type The type to set.
44: */
45: public void setType(String type) {
46: this .type = type;
47: }
48:
49: /**
50: * @return Returns the baseName.
51: */
52: public String getBaseName() {
53: return baseName;
54: }
55:
56: /**
57: * @param baseName The baseName to set.
58: */
59: public void setBaseName(String baseName) {
60: this .baseName = baseName;
61: }
62:
63: /**
64: * @return Returns the baseName.
65: */
66: public ObjectName getMBeanName() {
67: return mbeanName;
68: }
69:
70: /**
71: * @return Returns the connector name.
72: */
73: public String getConnector() {
74: return connector;
75: }
76:
77: }
|