private Collection<CacheOperation> getOps(String name) { Method method = ReflectionUtils.findMethod(AnnotatedClass.class, name, Object.class, Object.class); return this.source.getCacheOperations(method, AnnotatedClass.class); }
private Collection<CacheOperation> getOps(Class<?> target, String name) { try { Method method = target.getMethod(name); return this.source.getCacheOperations(method, target); } catch (NoSuchMethodException ex) { throw new IllegalStateException(ex); } }