103 |
|
// ### This is where the list of supported components is checked! ### |
104 |
|
if (componentName.equalsIgnoreCase("core")) { |
105 |
|
component = new uk.ac.ukc.iscream.core.Core(); |
106 |
+ |
} else if (componentName.equalsIgnoreCase("filtermanager")) { |
107 |
+ |
component = new uk.ac.ukc.iscream.filtermanager.FilterManager(); |
108 |
|
} |
109 |
|
// ### Add new component constructors in the above section! ### |
110 |
+ |
|
111 |
|
if (component != null) { |
112 |
|
try { |
113 |
|
component.start(); |
120 |
|
System.err.println(toString + ": WARNING unsupported component not started"); |
121 |
|
} |
122 |
|
} |
123 |
< |
System.out.println(toString + ": finished"); |
123 |
> |
System.out.println(toString + ": running"); |
124 |
|
|
125 |
|
// block on the ORB...in time, management functionality can be placed here. |
126 |
|
refman.getORB().run(); |
127 |
|
} |
128 |
< |
|
129 |
< |
|
127 |
< |
/** |
128 |
> |
|
129 |
> |
/** |
130 |
|
* A simple method to print the usage of this class. |
131 |
|
* It never returns, but instead exits to the system |
132 |
|
* with a value 1, to indicate the system did not start |