protected void destroy() { if (runDestroy) { super.destroy(); } }
/** * Process events for an associated Context. * * @param event The lifecycle event that has occurred */ public void lifecycleEvent(LifecycleEvent event) { // Identify the context we are associated with try { context = (Context) event.getLifecycle(); } catch (ClassCastException e) { log.error(sm.getString("contextConfig.cce", event.getLifecycle()), e); return; } // Process the event that has occurred if (event.getType().equals(Lifecycle.START_EVENT)) { start(); } else if (event.getType().equals(Lifecycle.BEFORE_START_EVENT)) { beforeStart(); } else if (event.getType().equals(Lifecycle.AFTER_START_EVENT)) { } else if (event.getType().equals(Context.COMPLETE_CONFIG_EVENT)) { completeConfig(); } else if (event.getType().equals(Lifecycle.STOP_EVENT)) { stop(); } else if (event.getType().equals(Lifecycle.INIT_EVENT)) { init(); } else if (event.getType().equals(Lifecycle.DESTROY_EVENT)) { destroy(); } }
init(); } else if (event.getType().equals(Lifecycle.DESTROY_EVENT)) { destroy(); } else if (event.getType().equals(Lifecycle.LOAD_ON_STARTUP_EVENT)) { loadOnStartup();
init(); } else if (event.getType().equals(Lifecycle.AFTER_DESTROY_EVENT)) { destroy();
init(); } else if (event.getType().equals(Lifecycle.AFTER_DESTROY_EVENT)) { destroy();
init(); } else if (event.getType().equals(Lifecycle.AFTER_DESTROY_EVENT)) { destroy();
init(); } else if (event.getType().equals(Lifecycle.DESTROY_EVENT)) { destroy();
init(); } else if (event.getType().equals(Lifecycle.AFTER_DESTROY_EVENT)) { destroy();
init(); } else if (event.getType().equals(Lifecycle.AFTER_DESTROY_EVENT)) { destroy();
init(); } else if (event.getType().equals(Lifecycle.AFTER_DESTROY_EVENT)) { destroy();
init(); } else if (event.getType().equals(Lifecycle.AFTER_DESTROY_EVENT)) { destroy();
init(); } else if (event.getType().equals(Lifecycle.AFTER_DESTROY_EVENT)) { destroy();