/** * Sets the <code>Destination</code> of the <code>ServiceAdapter</code>. * Also sets the <code>ServiceAdapter</code> of the <code>Destination</code> * if needed. * * @param destination The <code>Destination</code> of the <code>ServiceAdapter</code>. */ public void setDestination(Destination destination) { Destination oldDestination = getDestination(); setParent(destination); if (oldDestination != null) oldDestination.setAdapter(null); // Set destination's adapter if needed if (destination.getAdapter() != this) { destination.setAdapter(this); } }
/** * Sets the <code>Destination</code> of the <code>ServiceAdapter</code>. * Also sets the <code>ServiceAdapter</code> of the <code>Destination</code> * if needed. * * @param destination The <code>Destination</code> of the <code>ServiceAdapter</code>. */ public void setDestination(Destination destination) { Destination oldDestination = getDestination(); setParent(destination); if (oldDestination != null) oldDestination.setAdapter(null); // Set destination's adapter if needed if (destination.getAdapter() != this) { destination.setAdapter(this); } }
/** * Sets the <code>Destination</code> of the <code>ServiceAdapter</code>. * Also sets the <code>ServiceAdapter</code> of the <code>Destination</code> * if needed. * * @param destination The <code>Destination</code> of the <code>ServiceAdapter</code>. */ public void setDestination(Destination destination) { Destination oldDestination = getDestination(); setParent(destination); if (oldDestination != null) oldDestination.setAdapter(null); // Set destination's adapter if needed if (destination.getAdapter() != this) { destination.setAdapter(this); } }