Search in sources :

Example 1 with MethodHierarchyReader

use of com.google.api.server.spi.MethodHierarchyReader in project endpoints-java by cloudendpoints.

the class ApiConfigAnnotationReader method readEndpointMethods.

private void readEndpointMethods(Class<?> endpointClass, ApiClassConfig.MethodConfigMap methodConfigMap) throws IllegalArgumentException, SecurityException, IllegalAccessException, InvocationTargetException, NoSuchMethodException {
    MethodHierarchyReader methodReader = new MethodHierarchyReader(endpointClass);
    Iterable<List<EndpointMethod>> methods = methodReader.getEndpointOverrides();
    for (List<EndpointMethod> overrides : methods) {
        readEndpointMethod(methodConfigMap, overrides);
    }
}
Also used : EndpointMethod(com.google.api.server.spi.EndpointMethod) List(java.util.List) MethodHierarchyReader(com.google.api.server.spi.MethodHierarchyReader)

Aggregations

EndpointMethod (com.google.api.server.spi.EndpointMethod)1 MethodHierarchyReader (com.google.api.server.spi.MethodHierarchyReader)1 List (java.util.List)1