/** * Check equality of the proxies behind the given AdvisedSupport objects. * Not the same as equality of the AdvisedSupport objects: * rather, equality of interfaces, advisors and target sources. */ public static boolean equalsInProxy(AdvisedSupport a, AdvisedSupport b) { return (a == b || (equalsProxiedInterfaces(a, b) && equalsAdvisors(a, b) && a.getTargetSource().equals(b.getTargetSource()))); }
return false; if (!AopProxyUtils.equalsProxiedInterfaces(this.advised, otherAdvised)) { return false;
/** * Check equality of the proxies behind the given AdvisedSupport objects. * Not the same as equality of the AdvisedSupport objects: * rather, equality of interfaces, advisors and target sources. */ public static boolean equalsInProxy(AdvisedSupport a, AdvisedSupport b) { return (a == b || (equalsProxiedInterfaces(a, b) && equalsAdvisors(a, b) && a.getTargetSource().equals(b.getTargetSource()))); }
/** * Check equality of the proxies behind the given AdvisedSupport objects. * Not the same as equality of the AdvisedSupport objects: * rather, equality of interfaces, advisors and target sources. */ public static boolean equalsInProxy(AdvisedSupport a, AdvisedSupport b) { return (a == b || (equalsProxiedInterfaces(a, b) && equalsAdvisors(a, b) && a.getTargetSource().equals(b.getTargetSource()))); }
/** * Check equality of the proxies behind the given AdvisedSupport objects. * Not the same as equality of the AdvisedSupport objects: * rather, equality of interfaces, advisors and target sources. */ public static boolean equalsInProxy(AdvisedSupport a, AdvisedSupport b) { if (a == b) { return true; } if (!equalsProxiedInterfaces(a, b)) { return false; } if (!equalsAdvisors(a, b)) { return false; } if (a.getTargetSource() == null) { return (b.getTargetSource() == null); } return a.getTargetSource().equals(b.getTargetSource()); }
return false; if (!AopProxyUtils.equalsProxiedInterfaces(this.advised, otherAdvised)) { return false;
public boolean equals(Object other) { if (other == null) { return false; } if (other == this) { return true; } ProxyCallbackFilter otherCallbackFilter = null; if (other instanceof ProxyCallbackFilter) { otherCallbackFilter = (ProxyCallbackFilter) other; } else { // not a valid comparison return false; } if (this.advised.isFrozen() != otherCallbackFilter.advised.isFrozen()) { return false; } if (this.advised.isExposeProxy() != otherCallbackFilter.advised.isExposeProxy()) { return false; } if (this.advised.getTargetSource().isStatic() != otherCallbackFilter.advised.getTargetSource().isStatic()) { return false; } return (AopProxyUtils.equalsProxiedInterfaces(this.advised, otherCallbackFilter.advised) && AopProxyUtils.equalsAdvisors(advised, otherCallbackFilter.advised)); } }
return false; if (!AopProxyUtils.equalsProxiedInterfaces(this.advised, otherAdvised)) { return false;
return false; if (!AopProxyUtils.equalsProxiedInterfaces(this.advised, otherAdvised)) { return false;