Java Code Examples for java.lang.reflect.Method.getDeclaredAnnotationsByType()

The following are Jave code examples for showing how to use getDeclaredAnnotationsByType() of the java.lang.reflect.Method class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
+ Save this method
Example 1
Project: fdk-java   File: FunctionConfigurer.java   View Source Code Vote up 4 votes
private boolean isConfigurationMethod(Method m) {
    return m.getDeclaredAnnotationsByType(FnConfiguration.class).length > 0 && !m.getDeclaringClass().isInterface();
}