/** * Managed subclasses should override this method to setup and * register their corresponding MBean control. * * @param destination The associated <code>Destination</code> for the adapter. */ protected void setupAdapterControl(Destination destination) { setManaged(false); }
/** * Managed subclasses should override this method to setup and * register their corresponding MBean control. * * @param destination The associated <code>Destination</code> for the adapter. */ protected void setupAdapterControl(Destination destination) { setManaged(false); }
/** * Managed subclasses should override this method to setup and * register their corresponding MBean control. * * @param destination The associated <code>Destination</code> for the adapter. */ protected void setupAdapterControl(Destination destination) { setManaged(false); }
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); } }
adapter.setManaged(isManaged()); adapter.setDestination(this);
adapter.setManaged(isManaged()); adapter.setDestination(this);
adapter.setManaged(isManaged()); adapter.setDestination(this);