| | |
| | | |
| | | if (configuration.isEnabled()) |
| | | { |
| | | String className = configuration.getAlertHandlerClass(); |
| | | String className = configuration.getJavaClass(); |
| | | try |
| | | { |
| | | AlertHandler handler = loadHandler(className, configuration, true); |
| | |
| | | { |
| | | // Get the name of the class and make sure we can instantiate it as an |
| | | // alert handler. |
| | | String className = configuration.getAlertHandlerClass(); |
| | | String className = configuration.getJavaClass(); |
| | | try |
| | | { |
| | | loadHandler(className, configuration, false); |
| | |
| | | |
| | | // Get the name of the class and make sure we can instantiate it as an alert |
| | | // handler. |
| | | String className = configuration.getAlertHandlerClass(); |
| | | String className = configuration.getJavaClass(); |
| | | try |
| | | { |
| | | alertHandler = loadHandler(className, configuration, true); |
| | |
| | | { |
| | | // Get the name of the class and make sure we can instantiate it as an |
| | | // alert handler. |
| | | String className = configuration.getAlertHandlerClass(); |
| | | String className = configuration.getJavaClass(); |
| | | try |
| | | { |
| | | loadHandler(className, configuration, false); |
| | |
| | | // then we'll at least need to indicate that administrative action is |
| | | // required. If the handler is disabled, then instantiate the class and |
| | | // initialize and register it as an alert handler. |
| | | String className = configuration.getAlertHandlerClass(); |
| | | String className = configuration.getJavaClass(); |
| | | if (existingHandler != null) |
| | | { |
| | | if (! className.equals(existingHandler.getClass().getName())) |
| | |
| | | { |
| | | AlertHandlerCfgDefn definition = AlertHandlerCfgDefn.getInstance(); |
| | | ClassPropertyDefinition propertyDefinition = |
| | | definition.getAlertHandlerClassPropertyDefinition(); |
| | | definition.getJavaClassPropertyDefinition(); |
| | | Class<? extends AlertHandler> handlerClass = |
| | | propertyDefinition.loadClass(className, AlertHandler.class); |
| | | AlertHandler handler = handlerClass.newInstance(); |