@NameBinding
@Retention(value=RUNTIME)
@Target(value=TYPE)
public @interface Template
It is required to use this annotation on template resources. Even if each method in resource use its own template, resource class must be annotated with empty annotation.
Template path could also be absolute (in this case it must start with "/" - classpath root).
Annotation is also NameBinding, which allows easily apply filters (
ContainerRequestFilter and ContainerResponseFilter)
only for template resources (see TemplateAnnotationFilter as example).
| Modifier and Type | Optional Element and Description |
|---|---|
java.lang.String |
value |