Hi,
FYI, I have checked in support for meta-annotations. This provides the ability for applications to define their own custom annotations, which in turn define a set of standard annotations that can be reused.
For example, the following annotation defines @Component, @Composite, @EndpointUri as well as standard JAX-RS annotations (@Consumes, @Produces):
@Component
@Composite
@EndpointUri("root")
@Consumes({MediaType.APPLICATION_JSON})
@Produces({MediaType.APPLICATION_JSON})
@java.lang.annotation.Target({java.lang.annotation.ElementType.TYPE})
@java.lang.annotation.Retention(java.lang.annotation.RetentionPolicy.RUNTIME)
public @interface Controller {
}
This annotation can be used on multiple classes to avoid having to repeat annotations, which will hopefully cut down on boilerplate code as well as provide more centralized configuration:
@Controller
public class SomeController {
...
}
Jim