/** * Used by setAdapter and addAdapter. It removes the current adapter * of the destination */ private void removeAdapter() { ServiceAdapter adapter = getAdapter(); if (adapter != null) { adapter.stop(); } this.adapter = null; }
/** * Used by setAdapter and addAdapter. It removes the current adapter * of the destination */ private void removeAdapter() { ServiceAdapter adapter = getAdapter(); if (adapter != null) { adapter.stop(); } this.adapter = null; }
/** * Used by setAdapter and addAdapter. It removes the current adapter * of the destination */ private void removeAdapter() { ServiceAdapter adapter = getAdapter(); if (adapter != null) { adapter.stop(); } this.adapter = null; }
/** * The default implementation of this method stops all of the adapters * of the destination. * If subclasses override, they must call <code>super.stop()</code>. * */ public void stop() { if (!isStarted()) { return; } getAdapter().stop(); super.stop(); // Remove management if (isManaged() && getService().isManaged()) { if (getControl() != null) { getControl().unregister(); setControl(null); } setManaged(false); } }
/** * The default implementation of this method stops all of the adapters * of the destination. * If subclasses override, they must call <code>super.stop()</code>. * */ @Override public void stop() { if (!isStarted()) return; getAdapter().stop(); super.stop(); // Remove management if (isManaged() && getService().isManaged()) { if (getControl() != null) { getControl().unregister(); setControl(null); } setManaged(false); } }
/** * The default implementation of this method stops all of the adapters * of the destination. * If subclasses override, they must call <code>super.stop()</code>. * */ @Override public void stop() { if (!isStarted()) return; getAdapter().stop(); super.stop(); // Remove management if (isManaged() && getService().isManaged()) { if (getControl() != null) { getControl().unregister(); setControl(null); } setManaged(false); } }