207208209210211212213214215216217218219220221
} private boolean scanDetail(SubResource subResource, Method method) { Detail detail = method.getAnnotation(Detail.class); if (detail != null) { subResource.setDetail(detail.value()); return true; } return false; }
306307308309310311312313314315316317318319
return false; } private boolean scanDetail(Class<?> clazz, RootResource rootResource) { Detail detail = clazz.getAnnotation(Detail.class); if (detail != null) { rootResource.setDetail(detail.value()); return true; } return false;