@Override public boolean equals(Object other) { if (this == other) { return true; } if (!(other instanceof CacheOperationSourcePointcut)) { return false; } CacheOperationSourcePointcut otherPc = (CacheOperationSourcePointcut) other; return ObjectUtils.nullSafeEquals(getCacheOperationSource(), otherPc.getCacheOperationSource()); }
@Override public String toString() { return getClass().getName() + ": " + getCacheOperationSource(); }
@Override public boolean equals(Object other) { if (this == other) { return true; } if (!(other instanceof CacheOperationSourcePointcut)) { return false; } CacheOperationSourcePointcut otherPc = (CacheOperationSourcePointcut) other; return ObjectUtils.nullSafeEquals(getCacheOperationSource(), otherPc.getCacheOperationSource()); }
@Override public boolean matches(Method method, Class<?> targetClass) { if (CacheManager.class.isAssignableFrom(targetClass)) { return false; } CacheOperationSource cas = getCacheOperationSource(); return (cas != null && !CollectionUtils.isEmpty(cas.getCacheOperations(method, targetClass))); }
@Override public String toString() { return getClass().getName() + ": " + getCacheOperationSource(); }
@Override public boolean matches(Method method, Class<?> targetClass) { if (CacheManager.class.isAssignableFrom(targetClass)) { return false; } CacheOperationSource cas = getCacheOperationSource(); return (cas != null && !CollectionUtils.isEmpty(cas.getCacheOperations(method, targetClass))); }
@Override public boolean equals(Object other) { if (this == other) { return true; } if (!(other instanceof CacheOperationSourcePointcut)) { return false; } CacheOperationSourcePointcut otherPc = (CacheOperationSourcePointcut) other; return ObjectUtils.nullSafeEquals(getCacheOperationSource(), otherPc.getCacheOperationSource()); }
@Override public String toString() { return getClass().getName() + ": " + getCacheOperationSource(); }
@Override public boolean matches(Method method, Class<?> targetClass) { if (CacheManager.class.isAssignableFrom(targetClass)) { return false; } CacheOperationSource cas = getCacheOperationSource(); return (cas != null && !CollectionUtils.isEmpty(cas.getCacheOperations(method, targetClass))); }