public void preDeregister() throws Exception { ServiceControl parent = (ServiceControl)getParentControl(); parent.removeDestination(getObjectName()); // Unregister adapter of the destination ServiceAdapter child = destination.getAdapter(); if (child.getControl() != null) { child.getControl().unregister(); child.setControl(null); child.setManaged(false); } super.preDeregister(); }
public void preDeregister() throws Exception { ServiceControl parent = (ServiceControl)getParentControl(); parent.removeDestination(getObjectName()); // Unregister adapter of the destination ServiceAdapter child = destination.getAdapter(); if (child.getControl() != null) { child.getControl().unregister(); child.setControl(null); child.setManaged(false); } super.preDeregister(); }
public void preDeregister() throws Exception { ServiceControl parent = (ServiceControl)getParentControl(); parent.removeDestination(getObjectName()); // Unregister adapter of the destination ServiceAdapter child = destination.getAdapter(); if (child.getControl() != null) { child.getControl().unregister(); child.setControl(null); child.setManaged(false); } super.preDeregister(); }
/** * Stops the <code>ServiceAdapter</code>. * If subclasses override, they must call <code>super.start()</code>. * */ public void stop() { if (!isStarted()) { return; } super.stop(); // Remove management if (isManaged() && getDestination().isManaged()) { if (getControl() != null) { getControl().unregister(); setControl(null); } setManaged(false); } }
/** * Stops the <code>ServiceAdapter</code>. * If subclasses override, they must call <code>super.start()</code>. * */ public void stop() { if (!isStarted()) { return; } super.stop(); // Remove management if (isManaged() && getDestination().isManaged()) { if (getControl() != null) { getControl().unregister(); setControl(null); } setManaged(false); } }
/** * Stops the <code>ServiceAdapter</code>. * If subclasses override, they must call <code>super.start()</code>. * */ public void stop() { if (!isStarted()) { return; } super.stop(); // Remove management if (isManaged() && getDestination().isManaged()) { if (getControl() != null) { getControl().unregister(); setControl(null); } setManaged(false); } }