protected void jbossInternalDestroy() { if (state != STOPPED) { destroyIgnored = true; if (log.isDebugEnabled()) { log.debug("Ignoring destroy call; current state is " + getStateString()); } return; } destroyIgnored = false; if (log.isDebugEnabled()) { log.debug("Destroying " + jbossInternalDescription()); } try { destroyService(); } catch (Throwable t) { log.warn(ServiceMBeanLogger.ROOT_LOGGER.destroyingFailed(jbossInternalDescription()), t); } state = DESTROYED; if (log.isDebugEnabled()) { log.debug("Destroyed " + jbossInternalDescription()); } if (unregisterIgnored) { postDeregister(); } }
@Override protected void destroyService() throws Exception { super.destroyService(); try { if (destroyMethod != null) destroyMethod.invoke(delegate); } catch (InvocationTargetException e) { Throwable t = e.getCause(); if (t instanceof Exception) throw (Exception)t; else throw new RuntimeException(t); } }
protected void jbossInternalDestroy() { if (state == DESTROYED) { log.debug("Ignoring destroy call; current state is " + getStateString()); return; } if (state == STARTED) { log.debug("Destroy requested before stop, calling stop now"); stop(); } log.debug("Destroying " + jbossInternalDescription()); try { destroyService(); } catch (Throwable t) { log.warn("Destroying failed " + jbossInternalDescription(), t); } state = DESTROYED; log.debug("Destroyed " + jbossInternalDescription()); }
protected void jbossInternalDestroy() { if (state != STOPPED) { destroyIgnored = true; if (log.isDebugEnabled()) { log.debug("Ignoring destroy call; current state is " + getStateString()); } return; } destroyIgnored = false; if (log.isDebugEnabled()) { log.debug("Destroying " + jbossInternalDescription()); } try { destroyService(); } catch (Throwable t) { log.warn(ServiceMBeanLogger.ROOT_LOGGER.destroyingFailed(jbossInternalDescription()), t); } state = DESTROYED; if (log.isDebugEnabled()) { log.debug("Destroyed " + jbossInternalDescription()); } if (unregisterIgnored) { postDeregister(); } }
protected void jbossInternalDestroy() { if (state != STOPPED) { destroyIgnored = true; if (log.isDebugEnabled()) { log.debug("Ignoring destroy call; current state is " + getStateString()); } return; } destroyIgnored = false; if (log.isDebugEnabled()) { log.debug("Destroying " + jbossInternalDescription()); } try { destroyService(); } catch (Throwable t) { log.warn(ServiceMBeanLogger.ROOT_LOGGER.destroyingFailed(jbossInternalDescription()), t); } state = DESTROYED; if (log.isDebugEnabled()) { log.debug("Destroyed " + jbossInternalDescription()); } if (unregisterIgnored) { postDeregister(); } }
protected void jbossInternalDestroy() { if (state == DESTROYED) { log.debugf("Ignoring destroy call; current state is %1s", getStateString()); return; } if (state == STARTED) { log.debugf("Destroy requested before stop, calling stop now"); stop(); } log.debugf("Destroying %1s", jbossInternalDescription()); try { destroyService(); } catch (Throwable t) { log.warn("Destroying failed " + jbossInternalDescription(), t); } state = DESTROYED; log.debugf("Destroyed %1s", jbossInternalDescription()); }