2 |
|
package uk.ac.ukc.iscream.componentmanager; |
3 |
|
|
4 |
|
//---IMPORTS--- |
5 |
– |
import uk.ac.ukc.iscream.util.*; |
5 |
|
import java.util.*; |
6 |
|
import java.io.*; |
7 |
|
|
106 |
|
component = new uk.ac.ukc.iscream.filtermanager.FilterManager(); |
107 |
|
} else if (componentName.equalsIgnoreCase("rootfilter")) { |
108 |
|
component = new uk.ac.ukc.iscream.rootfilter.RootFilter(); |
109 |
+ |
} else if (componentName.equalsIgnoreCase("dbinterface")) { |
110 |
+ |
component = new uk.ac.ukc.iscream.dbinterface.DBInterface(); |
111 |
+ |
} else if (componentName.equalsIgnoreCase("clientinterface")) { |
112 |
+ |
component = new uk.ac.ukc.iscream.clientinterface.ClientInterfaceMain(); |
113 |
+ |
// note the passing of the Filter's name in its constructor |
114 |
+ |
} else if (componentName.equalsIgnoreCase("filter")) { |
115 |
+ |
component = new uk.ac.ukc.iscream.filter.FilterMain(filterName); |
116 |
|
} |
117 |
|
// ### Add new component constructors in the above section! ### |
118 |
|
|
142 |
|
*/ |
143 |
|
public static void usage() { |
144 |
|
System.out.println("USAGE: java uk.ac.ukc.iscream.componentmanager.ComponentManager <option>"); |
145 |
+ |
System.out.println(" or: java -jar iscream.jar <option>"); |
146 |
|
System.out.println("WHERE <option>:"); |
147 |
|
System.out.println(" -l <filename> - the location of initial system properties"); |
148 |
|
System.out.println(" the default is ./etc/default.properties"); |