private void uninstall() { disabled = true; if (context != null) { context.removeLifecycleListener(this); } if (host != null) { host.removeLifecycleListener(this); host.removeContainerListener(this); } engine.removePropertyChangeListener(this); }
protected void processContainerRemoveChild(Container parent, Container child) { if (log.isDebugEnabled()) log.debug("Process removeChild[parent=" + parent + ",child=" + child + "]"); if (child instanceof Context) { Context context = (Context) child; context.removeLifecycleListener(this); } else if (child instanceof Host || child instanceof Engine) { child.removeContainerListener(this); } }
private void uninstall() { disabled = true; if (context != null) { context.removeLifecycleListener(this); } if (host != null) { host.removeLifecycleListener(this); host.removeContainerListener(this); } engine.removePropertyChangeListener(this); }
protected void processContainerRemoveChild(Container parent, Container child) { if (log.isDebugEnabled()) log.debug("Process removeChild[parent=" + parent + ",child=" + child + "]"); if (child instanceof Context) { Context context = (Context) child; context.removeLifecycleListener(this); } else if (child instanceof Host || child instanceof Engine) { child.removeContainerListener(this); } }
private void uninstall() { disabled = true; if (context != null) { context.removeLifecycleListener(this); } if (host != null) { host.removeLifecycleListener(this); host.removeContainerListener(this); } engine.removePropertyChangeListener(this); }
protected void processContainerRemoveChild(Container parent, Container child) { if (log.isDebugEnabled()) log.debug("Process removeChild[parent=" + parent + ",child=" + child + "]"); if (child instanceof Context) { Context context = (Context) child; context.removeLifecycleListener(this); } else if (child instanceof Host || child instanceof Engine) { child.removeContainerListener(this); } }
protected void processContainerRemoveChild(Container parent, Container child) { if (log.isDebugEnabled()) log.debug("Process removeChild[parent=" + parent + ",child=" + child + "]"); if (child instanceof Context) { Context context = (Context) child; context.removeLifecycleListener(this); } else if (child instanceof Host || child instanceof Engine) { child.removeContainerListener(this); } }
private void uninstall() { disabled = true; if (context != null) { context.removeLifecycleListener(this); } if (host != null) { host.removeLifecycleListener(this); host.removeContainerListener(this); } engine.removePropertyChangeListener(this); }
protected void processContainerRemoveChild(Container parent, Container child) { if (log.isDebugEnabled()) log.debug("Process removeChild[parent=" + parent + ",child=" + child + "]"); if (child instanceof Context) { Context context = (Context) child; context.removeLifecycleListener(this); } else if (child instanceof Host || child instanceof Engine) { child.removeContainerListener(this); } }
private void uninstall() { disabled = true; if (context != null) { context.removeLifecycleListener(this); } if (host != null) { host.removeLifecycleListener(this); host.removeContainerListener(this); } engine.removePropertyChangeListener(this); }
protected void processContainerRemoveChild(Container parent, Container child) { if (log.isDebugEnabled()) log.debug("Process removeChild[parent=" + parent + ",child=" + child + "]"); if (child instanceof Context) { Context context = (Context) child; context.removeLifecycleListener(this); } else if (child instanceof Host || child instanceof Engine) { child.removeContainerListener(this); } }
private void uninstall() { disabled = true; if (context != null) { context.removeLifecycleListener(this); } if (host != null) { host.removeLifecycleListener(this); host.removeContainerListener(this); } engine.removePropertyChangeListener(this); }
private void uninstall() { disabled = true; if (context != null) { context.removeLifecycleListener(this); } if (host != null) { host.removeLifecycleListener(this); host.removeContainerListener(this); } engine.removePropertyChangeListener(this); }
private void uninstall() { disabled = true; if (context != null) { context.removeLifecycleListener(this); } if (host != null) { host.removeLifecycleListener(this); host.removeContainerListener(this); } engine.removePropertyChangeListener(this); }
protected void processContainerRemoveChild(Container parent, Container child) { if (log.isDebugEnabled()) log.debug("Process removeChild[parent=" + parent + ",child=" + child + "]"); if (child instanceof Context) { Context context = (Context) child; context.removeLifecycleListener(this); } else if (child instanceof Host || child instanceof Engine) { child.removeContainerListener(this); } }
protected void processContainerRemoveChild(Container parent, Container child) { if (log.isDebugEnabled()) log.debug("Process removeChild[parent=" + parent + ",child=" + child + "]"); if (child instanceof Context) { Context context = (Context) child; context.removeLifecycleListener(this); } else if (child instanceof Host || child instanceof Engine) { child.removeContainerListener(this); } }
@Override public void lifecycleEvent(LifecycleEvent event) { if (Lifecycle.AFTER_STOP_EVENT.equals(event.getType())) { // The context has stopped. Context context = (Context) event.getLifecycle(); // Remove the old expanded WAR. ExpandWar.delete(toDelete); // Reset the docBase to trigger re-expansion of the WAR. context.setDocBase(newDocBase); // Remove this listener from the Context else it will run every // time the Context is stopped. context.removeLifecycleListener(this); } } }
context.removeLifecycleListener(listener); break;
@Override public void lifecycleEvent(LifecycleEvent event) { if (Lifecycle.AFTER_STOP_EVENT.equals(event.getType())) { // The context has stopped. Context context = (Context) event.getLifecycle(); // Remove the old expanded WAR. ExpandWar.delete(toDelete); // Reset the docBase to trigger re-expansion of the WAR. context.setDocBase(newDocBase); // Remove this listener from the Context else it will run every // time the Context is stopped. context.removeLifecycleListener(this); } } }