@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 it's own template,
resource class must be annotated with empty annotation (see DirectTemplateResource as example).
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 |