6 |
|
import java.util.*; |
7 |
|
|
8 |
|
import uk.ac.ukc.iscream.util.*; |
9 |
+ |
import uk.ac.ukc.iscream.componentmanager.*; |
10 |
|
import uk.ac.ukc.iscream.core.*; |
11 |
|
|
12 |
|
/** |
13 |
< |
* the plugin filter manager |
13 |
> |
* This class setups up and manages Plugins in a Filter. A list |
14 |
> |
* of plugins to use is specified in the configuration, and these |
15 |
> |
* are all loaded upon first use of this class. |
16 |
|
* This is a singleton class. |
17 |
|
* |
18 |
|
* @author $Author$ |
51 |
|
_logger.write(toString(), Logger.SYSINIT, "Initialising"); |
52 |
|
_logger.write(toString(), Logger.SYSMSG, "Creating filter pipeline for plugin filters ..."); |
53 |
|
|
54 |
+ |
// get the configuration for this plug-in setup |
55 |
|
Configuration config = _refman.getCM().getConfiguration(FilterMain.NAME); |
56 |
|
String pluginsPackage = config.getProperty("Filter.PluginsPackage"); |
57 |
|
String pluginsList = config.getProperty("Filter.Plugins"); |
89 |
|
* return true if they all accept the packet. |
90 |
|
* return false if any single filter rejects the packet. |
91 |
|
* return true if there are no filters inthe pipeline. |
92 |
+ |
* |
93 |
+ |
* @param packet an XMLPacket to be tested |
94 |
+ |
* @return whether the packet can be passed on |
95 |
|
*/ |
96 |
|
public boolean runFilters(XMLPacket packet){ |
97 |
|
|