1 22 package org.jboss.test.xml.mbeanserver; 23 24 import javax.management.ObjectName ; 25 import javax.management.MalformedObjectNameException ; 26 import javax.xml.namespace.NamespaceContext ; 27 28 32 public class MBeanDepends 33 { 34 private String attributeName; 35 private String proxyType; 36 private ObjectName targetName; 37 38 public String getAttributeName() 39 { 40 return attributeName; 41 } 42 43 public void setAttributeName(String attributeName) 44 { 45 this.attributeName = attributeName; 46 } 47 48 public String getProxyType() 49 { 50 return proxyType; 51 } 52 53 public void setProxyType(String proxyType) 54 { 55 this.proxyType = proxyType; 56 } 57 58 public ObjectName getTargetName() 59 { 60 return targetName; 61 } 62 63 public void setTargetName(ObjectName targetName) 64 { 65 this.targetName = targetName; 66 } 67 68 public static Object unmarshalStringValue(String text, NamespaceContext ctx) 69 throws MalformedObjectNameException 70 71 { 72 return text == null ? null : new ObjectName (text.trim()); 73 } 74 } 75 | Popular Tags |