contextListener.init(standardContext); } else if (Lifecycle.BEFORE_START_EVENT.equals(type)) { contextListener.beforeStart(standardContext); } else if (Lifecycle.START_EVENT.equals(type)) { if (TomcatHelper.isTomcat7()) { contextListener.start(standardContext); } else if (Lifecycle.AFTER_START_EVENT.equals(type)) { contextListener.afterStart(standardContext); contextListener.beforeStop(standardContext); } else if (Lifecycle.STOP_EVENT.equals(type)) { contextListener.stop(standardContext); } else if (Lifecycle.AFTER_STOP_EVENT.equals(type)) { contextListener.afterStop(standardContext); } else if (DESTROY_EVENT.equals(type) || Lifecycle.AFTER_DESTROY_EVENT.equals(type)) { contextListener.destroy(standardContext); } else if (Lifecycle.CONFIGURE_START_EVENT.equals(type)) { contextListener.configureStart(standardContext); String type = event.getType(); if (Lifecycle.PERIODIC_EVENT.equals(type)) { contextListener.checkHost(standardHost); contextListener.afterStop(standardServer);
case INIT_EVENT: case Lifecycle.BEFORE_INIT_EVENT: contextListener.init(standardContext); break; case Lifecycle.BEFORE_START_EVENT: contextListener.beforeStart(standardContext); break; case Lifecycle.START_EVENT: standardContext.addParameter("openejb.start.late", "true"); contextListener.start(standardContext); break; case Lifecycle.AFTER_START_EVENT: contextListener.afterStart(standardContext); standardContext.removeParameter("openejb.start.late"); break; case Lifecycle.BEFORE_STOP_EVENT: contextListener.beforeStop(standardContext); break; case Lifecycle.STOP_EVENT: contextListener.stop(standardContext); break; case Lifecycle.AFTER_STOP_EVENT: contextListener.afterStop(standardContext); break; case DESTROY_EVENT: case Lifecycle.AFTER_DESTROY_EVENT: contextListener.destroy(standardContext); break; case Lifecycle.CONFIGURE_START_EVENT: