Example usage for org.apache.shiro.util ClassUtils getAnnotatedMethods

List of usage examples for org.apache.shiro.util ClassUtils getAnnotatedMethods

Introduction

In this page you can find the example usage for org.apache.shiro.util ClassUtils getAnnotatedMethods.

Prototype

public static List<Method> getAnnotatedMethods(final Class<?> type,
        final Class<? extends Annotation> annotation) 

Source Link

Usage

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);
}