220221222223224225226227228229230231232233234
return false; } private boolean scanName(SubResource subResource, Method method) { Name name = method.getAnnotation(Name.class); if (name != null) { subResource.setName(name.value()); return true; } return false; }
294295296297298299300301302303304305306307
return false; } private boolean scanName(Class<?> clazz, RootResource rootResource) { Name name = clazz.getAnnotation(Name.class); if (name != null) { rootResource.setName(name.value()); return true; } return false; }