/** * Compares the specified object with this <code>ActivatableInvocationHandler</code> for * equality. * * <p> This method returns <code>true</code> if and only if the specified object has the same * class as this object, and the activation identifier and client constraints in the specified * object are equal to the ones in this object. **/ public boolean equals(Object obj) { if (this == obj) { return true; } else if (!(obj instanceof ActivatableInvocationHandler)) { return false; } ActivatableInvocationHandler other = (ActivatableInvocationHandler) obj; return (id.equals(other.id) && (clientConstraints == other.clientConstraints || (clientConstraints != null && clientConstraints.equals(other.clientConstraints)))); }
/** * Returns a hash code value for this object. */ public int hashCode() { return id.hashCode(); }
proxy = aid.activate(true); if (proxy != null) { proxy = servicePreparer.prepareProxy(proxy);
aid = (ActivationID) activationIDPreparer.prepareProxy(aid); proxy = aid.activate(true);