/** * Process the START event for an associated Context. * * @param event The lifecycle event that has occurred */ public void lifecycleEvent(LifecycleEvent event) throws LifecycleException { // Identify the context we are associated with try { context = (Context) event.getLifecycle(); } catch (ClassCastException e) { String msg = MessageFormat.format(rb.getString(LogFacade.EVENT_DATA_IS_NOT_CONTEXT_EXCEPTION), event.getLifecycle()); throw new LifecycleException(msg, e); } // Called from ContainerBase.addChild() -> StandardContext.start() // Process the event that has occurred if (event.getType().equals(Lifecycle.START_EVENT)) { start(); } else if (event.getType().equals(Lifecycle.STOP_EVENT)) { stop(); // START GlassFish 2439 } else if (event.getType().equals(Lifecycle.INIT_EVENT)) { init(); // END GlassFish 2439 } }
/** * Process the START event for an associated Context. * * @param event The lifecycle event that has occurred */ public void lifecycleEvent(LifecycleEvent event) throws LifecycleException { // Identify the context we are associated with context = (Context) event.getLifecycle(); // Called from ContainerBase.addChild() -> StandardContext.start() // Process the event that has occurred if (event.getType().equals(Lifecycle.START_EVENT)) { configureResource(); start(); } else if (event.getType().equals(Lifecycle.STOP_EVENT)) { stop(); } else if (event.getType().equals(Lifecycle.INIT_EVENT)) { super.init(); } }
/** * 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(); } }
stop(); } else if (event.getType().equals(Lifecycle.INIT_EVENT)) { init(); } else if (event.getType().equals(Lifecycle.DESTROY_EVENT)) { destroy();
configureStop(); } else if (event.getType().equals(Lifecycle.AFTER_INIT_EVENT)) { init(); } else if (event.getType().equals(Lifecycle.AFTER_DESTROY_EVENT)) { destroy();
configureStop(); } else if (event.getType().equals(Lifecycle.AFTER_INIT_EVENT)) { init(); } else if (event.getType().equals(Lifecycle.AFTER_DESTROY_EVENT)) { destroy();
configureStop(); } else if (event.getType().equals(Lifecycle.AFTER_INIT_EVENT)) { 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();