1 package net.sf.panoptes.model.node;
2
3 import net.sf.panoptes.model.component.*;
4 import net.sf.panoptes.module.log4j.LoggerRepository;
5 import net.sf.panoptes.model.component.registry.ComponentRegistry;
6 import net.sf.panoptes.model.component.registry.ConfiguratorRegistry;
7
8 import org.apache.commons.digester.Digester;
9 import org.eclipse.swt.graphics.Image;
10
11 /***
12 * RootNode.java
13 *
14 * Root of the management tree.
15 *
16 * @author Dag Liodden
17 * @version 0.1
18 */
19 public class RootNode extends ComponentGroup {
20
21 private Digester digester;
22 private ComponentRegistry componentRegistry;
23 private ConfiguratorRegistry configRegistry;
24
25 /***
26 * Some predefined groups
27 */
28 LoggerRepository loggerRepository;
29
30 /***
31 * Constructor for RootNode.
32 */
33 public RootNode() {
34 super("Console", "Console");
35 componentRegistry = new ComponentRegistry();
36 loggerRepository = new LoggerRepository(componentRegistry);
37 this.configRegistry = new ConfiguratorRegistry();
38 }
39
40 /***
41 * @see com.gllt.troodon.console.Node#getIconName()
42 */
43 public Image getIcon() {
44 return Node.ICON_FOLDER;
45 }
46
47 /***
48 * @see com.gllt.troodon.console.Node#getConfigDescriptor()
49 */
50 public NodeDescriptor getConfigDescriptor() {
51 return new NodeDescriptor("Root", "Root");
52 }
53
54 /***
55 *
56 */
57 public LoggerRepository getLoggerRepository() {
58 return loggerRepository;
59 }
60
61 /***
62 * @return ComponentRegistry
63 */
64 public ComponentRegistry getComponentRegistry() {
65 return componentRegistry;
66 }
67
68 /***
69 * @return
70 */
71 public ConfiguratorRegistry getConfigRegistry() {
72 return configRegistry;
73 }
74
75 }
This page was automatically generated by Maven