It would be nice if I could define new annotations that function the same
way as various of the JAX-RS / Jersey annotations.
This would enable me to aggregate a set of the Annotations that I'd like to
combine into a single annotation that I could then apply to my Resources and
Providers.
An example of a use case for this is as follows:
I use the Spring integration contribution so I can work with Spring wiring
of my resources. These resources are annotated with Spring specific
annotations related to lifecycle and such as well as to indicate that they
are spring components.
I also need to Annotate these resources with Jersey annotations that
indicate the lifecycle of the beans and the two must match or things just
don't work.
I was thinking that it would be nice to define a new annotation of my own I
could use that would in turn be annotationed with the appropriate Jersey and
Spring annotations so that I could use a single lifecycle annotation that
would tell each IoC container the lifecycle of the component.
Spring's @Component annotation works this way and I thought it would make
sense for the Jersey / JAX-RS annotations as well.
Any thoughts on this?
Matt
___________________________________________________________________________
Matt Brozowski, OpenNMS Maintainer Main: +1 919 812 4984
The OpenNMS Group, Inc. Fax: +1 503 961 7746
Email: brozow@opennms.org URL:
http://www.opennms.com