46 |
|
_logger.write(toString(), Logger.SYSINIT, "Initialising"); |
47 |
|
_logger.write(toString(), Logger.SYSMSG, "Creating alerter pipeline for plugin alerters ..."); |
48 |
|
|
49 |
+ |
// get the config proxy |
50 |
+ |
ConfigurationProxy cp = ConfigurationProxy.getInstance(); |
51 |
+ |
|
52 |
|
// get the configuration for this plug-in setup |
53 |
< |
Configuration config = _refman.getCM().getConfiguration(_name); |
54 |
< |
String pluginsPackage = config.getProperty("Alerter.PluginsPackage"); |
55 |
< |
String pluginsList = config.getProperty("Alerter.Plugins"); |
53 |
> |
String pluginsPackage, pluginsList; |
54 |
> |
try { |
55 |
> |
pluginsPackage = cp.getProperty(_name, "Alerter.PluginsPackage"); |
56 |
> |
pluginsList = cp.getProperty(_name, "Alerter.Plugins"); |
57 |
> |
} catch(PropertyNotFoundException e) { |
58 |
> |
_logger.write(toString(), Logger.WARNING, "Unable to get required configuration, Alerter's will not be activated: "+e); |
59 |
> |
// setting these will ensure we don't build a pipeline |
60 |
> |
pluginsPackage = ""; |
61 |
> |
pluginsList = ""; |
62 |
> |
} |
63 |
|
|
64 |
|
StringTokenizer st = new StringTokenizer(pluginsList, ";"); |
65 |
|
|