KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > mx4j > tools > config > ConfigurationBuilder


1 /*
2  * Copyright (C) The MX4J Contributors.
3  * All rights reserved.
4  *
5  * This software is distributed under the terms of the MX4J License version 1.0.
6  * See the terms of the MX4J License in the documentation provided with this software.
7  */

8
9 package mx4j.tools.config;
10
11 import java.util.List JavaDoc;
12 import javax.management.MBeanServer JavaDoc;
13
14 import org.w3c.dom.Element JavaDoc;
15 import org.w3c.dom.NamedNodeMap JavaDoc;
16
17 /**
18  * @version $Revision: 1.3 $
19  */

20 public interface ConfigurationBuilder
21 {
22    public static interface Node
23    {
24       public void setAttributes(NamedNodeMap JavaDoc attributes) throws ConfigurationException;
25
26       public void setText(String JavaDoc text);
27
28       public java.lang.Object JavaDoc configure(MBeanServer JavaDoc server) throws ConfigurationException;
29
30       public Node getParent();
31
32       public void setParent(Node parent);
33
34       public List JavaDoc getChildren();
35
36       public void addChild(Node child);
37    }
38
39    public static interface ObjectsHolder
40    {
41       public Object JavaDoc getObject(String JavaDoc key);
42
43       public Object JavaDoc putObject(String JavaDoc key, Object JavaDoc value);
44
45       public boolean containsKey(String JavaDoc key);
46    }
47
48    public Node createConfigurationNode(Element JavaDoc node) throws ConfigurationException;
49 }
50
Popular Tags