1 8 9 package mx4j.tools.config; 10 11 import java.util.List ; 12 import javax.management.MBeanServer ; 13 14 import org.w3c.dom.Element ; 15 import org.w3c.dom.NamedNodeMap ; 16 17 20 public interface ConfigurationBuilder 21 { 22 public static interface Node 23 { 24 public void setAttributes(NamedNodeMap attributes) throws ConfigurationException; 25 26 public void setText(String text); 27 28 public java.lang.Object configure(MBeanServer server) throws ConfigurationException; 29 30 public Node getParent(); 31 32 public void setParent(Node parent); 33 34 public List getChildren(); 35 36 public void addChild(Node child); 37 } 38 39 public static interface ObjectsHolder 40 { 41 public Object getObject(String key); 42 43 public Object putObject(String key, Object value); 44 45 public boolean containsKey(String key); 46 } 47 48 public Node createConfigurationNode(Element node) throws ConfigurationException; 49 } 50 | Popular Tags |