@Test(expected = UnsupportedOperationException.class) public void mappingShouldBeUnmodifiable(){ JaxRsAnnotations.getMapping().clear(); }
public static Map<Class<? extends Annotation>, Class<? extends AnnotationHandler>> getMapping() { Map<Class<? extends Annotation>, Class<? extends AnnotationHandler>> handlers = new HashMap<Class<? extends Annotation>, Class<? extends AnnotationHandler>>(); handlers.put(javax.ws.rs.Consumes.class, ConsumesAnnotationHandler.class); handlers.put(javax.ws.rs.CookieParam.class, CookieParamAnnotationHandler.class); handlers.put(javax.ws.rs.DELETE.class, DELETEAnnotationHandler.class); handlers.put(javax.ws.rs.Encoded.class, EncodedAnnotationHandler.class); handlers.put(javax.ws.rs.FormParam.class, FormParamAnnotationHandler.class); handlers.put(javax.ws.rs.GET.class, GETAnnotationHandler.class); handlers.put(javax.ws.rs.HEAD.class, HEADAnnotationHandler.class); handlers.put(javax.ws.rs.HeaderParam.class, HeaderParamAnnotationHandler.class); handlers.put(javax.ws.rs.MatrixParam.class, MatrixParamAnnotationHandler.class); handlers.put(javax.ws.rs.OPTIONS.class, OPTIONSAnnotationHandler.class); handlers.put(javax.ws.rs.Path.class, PathAnnotationHandler.class); handlers.put(javax.ws.rs.PathParam.class, PathParamAnnotationHandler.class); handlers.put(javax.ws.rs.POST.class, POSTAnnotationHandler.class); handlers.put(javax.ws.rs.Produces.class, ProducesAnnotationHandler.class); handlers.put(javax.ws.rs.PUT.class, PUTAnnotationHandler.class); handlers.put(javax.ws.rs.QueryParam.class, QueryParamAnnotationHandler.class); handlers.put(javax.ws.rs.DefaultValue.class, DefaultValueAnnotationHandler.class); return Collections.unmodifiableMap(handlers); }
JaxRsAnnotations { public static Map<Class<? extends Annotation>, Class<? extends AnnotationHandler>> getMapping() { Map<Class<? extends Annotation>, Class<? extends AnnotationHandler>> handlers = new HashMap<Class<? extends Annotation>, Class<? extends AnnotationHandler>>(); handlers.put(javax.ws.rs.Consumes.class, ConsumesAnnotationHandler.class); handlers.put(javax.ws.rs.CookieParam.class, CookieParamAnnotationHandler.class); handlers.put(javax.ws.rs.DELETE.class, DELETEAnnotationHandler.class); handlers.put(javax.ws.rs.Encoded.class, EncodedAnnotationHandler.class); handlers.put(javax.ws.rs.FormParam.class, FormParamAnnotationHandler.class); handlers.put(javax.ws.rs.GET.class, GETAnnotationHandler.class); handlers.put(javax.ws.rs.HEAD.class, HEADAnnotationHandler.class); handlers.put(javax.ws.rs.HeaderParam.class, HeaderParamAnnotationHandler.class); handlers.put(javax.ws.rs.MatrixParam.class, MatrixParamAnnotationHandler.class); handlers.put(javax.ws.rs.OPTIONS.class, OPTIONSAnnotationHandler.class); handlers.put(javax.ws.rs.Path.class, PathAnnotationHandler.class); handlers.put(javax.ws.rs.PathParam.class, PathParamAnnotationHandler.class); handlers.put(javax.ws.rs.POST.class, POSTAnnotationHandler.class); handlers.put(javax.ws.rs.Produces.class, ProducesAnnotationHandler.class); handlers.put(javax.ws.rs.PUT.class, PUTAnnotationHandler.class); handlers.put(javax.ws.rs.QueryParam.class, QueryParamAnnotationHandler.class); handlers.put(javax.ws.rs.DefaultValue.class, DefaultValueAnnotationHandler.class); return Collections.unmodifiableMap(handlers); } }
JaxRsAnnotations { public static Map<Class<? extends Annotation>, Class<? extends AnnotationHandler>> getMapping() { Map<Class<? extends Annotation>, Class<? extends AnnotationHandler>> handlers = new HashMap<Class<? extends Annotation>, Class<? extends AnnotationHandler>>(); handlers.put(javax.ws.rs.Consumes.class, ConsumesAnnotationHandler.class); handlers.put(javax.ws.rs.CookieParam.class, CookieParamAnnotationHandler.class); handlers.put(javax.ws.rs.DELETE.class, DELETEAnnotationHandler.class); handlers.put(javax.ws.rs.Encoded.class, EncodedAnnotationHandler.class); handlers.put(javax.ws.rs.FormParam.class, FormParamAnnotationHandler.class); handlers.put(javax.ws.rs.GET.class, GETAnnotationHandler.class); handlers.put(javax.ws.rs.HEAD.class, HEADAnnotationHandler.class); handlers.put(javax.ws.rs.HeaderParam.class, HeaderParamAnnotationHandler.class); handlers.put(javax.ws.rs.MatrixParam.class, MatrixParamAnnotationHandler.class); handlers.put(javax.ws.rs.OPTIONS.class, OPTIONSAnnotationHandler.class); handlers.put(javax.ws.rs.Path.class, PathAnnotationHandler.class); handlers.put(javax.ws.rs.PathParam.class, PathParamAnnotationHandler.class); handlers.put(javax.ws.rs.POST.class, POSTAnnotationHandler.class); handlers.put(javax.ws.rs.Produces.class, ProducesAnnotationHandler.class); handlers.put(javax.ws.rs.PUT.class, PUTAnnotationHandler.class); handlers.put(javax.ws.rs.QueryParam.class, QueryParamAnnotationHandler.class); handlers.put(javax.ws.rs.DefaultValue.class, DefaultValueAnnotationHandler.class); return Collections.unmodifiableMap(handlers); } private  JaxRsAnnotations(); }
JaxRsAnnotations { public static Map<Class<? extends Annotation>, Class<? extends AnnotationHandler>> getMapping() { Map<Class<? extends Annotation>, Class<? extends AnnotationHandler>> handlers = new HashMap<Class<? extends Annotation>, Class<? extends AnnotationHandler>>(); handlers.put(javax.ws.rs.Consumes.class, ConsumesAnnotationHandler.class); handlers.put(javax.ws.rs.CookieParam.class, CookieParamAnnotationHandler.class); handlers.put(javax.ws.rs.DELETE.class, DELETEAnnotationHandler.class); handlers.put(javax.ws.rs.Encoded.class, EncodedAnnotationHandler.class); handlers.put(javax.ws.rs.FormParam.class, FormParamAnnotationHandler.class); handlers.put(javax.ws.rs.GET.class, GETAnnotationHandler.class); handlers.put(javax.ws.rs.HEAD.class, HEADAnnotationHandler.class); handlers.put(javax.ws.rs.HeaderParam.class, HeaderParamAnnotationHandler.class); handlers.put(javax.ws.rs.MatrixParam.class, MatrixParamAnnotationHandler.class); handlers.put(javax.ws.rs.OPTIONS.class, OPTIONSAnnotationHandler.class); handlers.put(javax.ws.rs.Path.class, PathAnnotationHandler.class); handlers.put(javax.ws.rs.PathParam.class, PathParamAnnotationHandler.class); handlers.put(javax.ws.rs.POST.class, POSTAnnotationHandler.class); handlers.put(javax.ws.rs.Produces.class, ProducesAnnotationHandler.class); handlers.put(javax.ws.rs.PUT.class, PUTAnnotationHandler.class); handlers.put(javax.ws.rs.QueryParam.class, QueryParamAnnotationHandler.class); handlers.put(javax.ws.rs.DefaultValue.class, DefaultValueAnnotationHandler.class); return Collections.unmodifiableMap(handlers); } private  JaxRsAnnotations(); static boolean isJaxRsAware(); static Map<Class<? extends Annotation>, Class<? extends AnnotationHandler>> getMapping(); }
JaxRsAnnotations { public static Map<Class<? extends Annotation>, Class<? extends AnnotationHandler>> getMapping() { Map<Class<? extends Annotation>, Class<? extends AnnotationHandler>> handlers = new HashMap<Class<? extends Annotation>, Class<? extends AnnotationHandler>>(); handlers.put(javax.ws.rs.Consumes.class, ConsumesAnnotationHandler.class); handlers.put(javax.ws.rs.CookieParam.class, CookieParamAnnotationHandler.class); handlers.put(javax.ws.rs.DELETE.class, DELETEAnnotationHandler.class); handlers.put(javax.ws.rs.Encoded.class, EncodedAnnotationHandler.class); handlers.put(javax.ws.rs.FormParam.class, FormParamAnnotationHandler.class); handlers.put(javax.ws.rs.GET.class, GETAnnotationHandler.class); handlers.put(javax.ws.rs.HEAD.class, HEADAnnotationHandler.class); handlers.put(javax.ws.rs.HeaderParam.class, HeaderParamAnnotationHandler.class); handlers.put(javax.ws.rs.MatrixParam.class, MatrixParamAnnotationHandler.class); handlers.put(javax.ws.rs.OPTIONS.class, OPTIONSAnnotationHandler.class); handlers.put(javax.ws.rs.Path.class, PathAnnotationHandler.class); handlers.put(javax.ws.rs.PathParam.class, PathParamAnnotationHandler.class); handlers.put(javax.ws.rs.POST.class, POSTAnnotationHandler.class); handlers.put(javax.ws.rs.Produces.class, ProducesAnnotationHandler.class); handlers.put(javax.ws.rs.PUT.class, PUTAnnotationHandler.class); handlers.put(javax.ws.rs.QueryParam.class, QueryParamAnnotationHandler.class); handlers.put(javax.ws.rs.DefaultValue.class, DefaultValueAnnotationHandler.class); return Collections.unmodifiableMap(handlers); } private  JaxRsAnnotations(); static boolean isJaxRsAware(); static Map<Class<? extends Annotation>, Class<? extends AnnotationHandler>> getMapping();  }