List of usage examples for org.apache.shiro.util ClassUtils getAnnotatedMethods
public static List<Method> getAnnotatedMethods(final Class<?> type, final Class<? extends Annotation> annotation)
From source file:com.stormpath.shiro.spring.config.ShiroEventBusBeanPostProcessor.java
License:Apache License
private boolean isEventSubscriber(Object bean) { List annotatedMethods = ClassUtils.getAnnotatedMethods(bean.getClass(), Subscribe.class); return !CollectionUtils.isEmpty(annotatedMethods); }