javax.ws.rs
Annotation Type NameBinding


@Target(value=ANNOTATION_TYPE)
@Retention(value=RUNTIME)
@Documented
public @interface NameBinding

Meta-annotation used to create name binding annotations for filters and interceptors. Name binding via annotations is only supported as part of the Server API. In name binding, an annotation is defined using this meta-annotation and it is then used to decorate both the filter or interceptor class and the resource method or class that it applies to.

See JAX-RS 2.0: The Java API for RESTful Web Services specification for examples on how to use this meta-annotation for name binding of filters and interceptors.

Since:
2.0
Author:
Santiago Pericas-Geertsen



Copyright © 2007-2012 Oracle Corporation. All Rights Reserved. Use is subject to license terms.