1 25 26 package org.objectweb.jonas.webapp.jonasadmin.common; 27 28 import javax.management.ObjectName ; 29 30 public class ObjectNameItem implements NameItem { 31 32 34 private String objectName = null; 35 private String name = null; 36 37 39 public ObjectNameItem() { 40 } 41 42 public ObjectNameItem(ObjectName p_ObjectName) { 43 setObjectName(p_ObjectName.toString()); 44 setName(p_ObjectName.getKeyProperty("name")); 45 } 46 47 49 public String getName() { 50 return name; 51 } 52 53 public void setName(String name) { 54 this.name = name; 55 } 56 57 public String getObjectName() { 58 return objectName; 59 } 60 61 public void setObjectName(String objectName) { 62 this.objectName = objectName; 63 } 64 65 } | Popular Tags |