private void postEvent(int eventType, Object data)
throws ServerLifecycleException {
if (slcl == null) {
if (isFatal) {
throw new ServerLifecycleException(localStrings.getLocalString("lifecyclemodule.loadExceptionIsFatal", "Treating failure loading the lifecycle module as fatal", this.name));
}
return;
}
if (urlClassLoader != null)
setClassLoader();
LifecycleEvent slcEvent= new LifecycleEvent(this, eventType, data, this.leContext);
try {
slcl.handleEvent(slcEvent);
} catch (ServerLifecycleException sle) {
_logger.log(Level.WARNING, KernelLoggerInfo.serverLifecycleException,
new Object[] {this.name, sle});
if (isFatal)
throw sle;
} catch (Exception ee) {
_logger.log(Level.WARNING, KernelLoggerInfo.lifecycleModuleException,
new Object[] {this.name, ee});
if (isFatal) {
throw new ServerLifecycleException(localStrings.getLocalString("lifecyclemodule.event_exceptionIsFatal", "Treating the exception from lifecycle module event handler as fatal"), ee);
}
}
}