/** * Returns the annotation descriptors. * * @return The annotation descriptors. */ private List<AnnotationInfo> getAnnotations() { return isAnnotated() ? AnnotationUtils.getInstance().getAnnotations( getClass()) : null; }
/** * Returns the first annotation descriptor matching the given method. * * @param method * The method to match. * @param query * The query parameters. * @param entity * The request entity or null. * @return The annotation descriptor. * @throws IOException */ private MethodAnnotationInfo getAnnotation(Method method, Form query, Representation entity) throws IOException { if (isAnnotated()) { return AnnotationUtils.getInstance().getMethodAnnotation( getAnnotations(), method, query, entity, getMetadataService(), getConverterService()); } return null; }
List<AnnotationInfo> annotations = sr.isAnnotated() ? AnnotationUtils .getInstance().getAnnotations(sr.getClass()) : null;
List<AnnotationInfo> annotations = sr.isAnnotated() ? AnnotationUtils .getInstance().getAnnotations(sr.getClass()) : null;
List<AnnotationInfo> annotations = sr.isAnnotated() ? AnnotationUtils .getInstance().getAnnotations(sr.getClass()) : null;
List<AnnotationInfo> annotations = sr.isAnnotated() ? AnnotationUtils .getInstance().getAnnotations(sr.getClass()) : null;
List<AnnotationInfo> annotations = sr.isAnnotated() ? AnnotationUtils .getInstance().getAnnotations(sr.getClass()) : null;
if (isAnnotated() && hasAnnotations()) { List<Variant> annoVariants = null; method = (Method.HEAD.equals(method)) ? Method.GET : method;
List<AnnotationInfo> annotations = resource.isAnnotated() ? AnnotationUtils .getInstance().getAnnotations(resource.getClass()) : null;