jsr340-experts@servlet-spec.java.net

[jsr340-experts] Re: Support of Interceptor in Servlet

From: Greg Wilkins <gregw_at_intalio.com>
Date: Wed, 29 Feb 2012 16:16:30 +1100

On 8 February 2012 09:59, Remy Maucherat <rmaucher_at_redhat.com> wrote:

> On Mon, 2012-02-06 at 16:51 -0800, Shing Wai Chan wrote:
> > Is there any concern if Servlet spec support the interceptors above?
> > We would like to listen to opinion of experience group.
>
> I don't see where the benefit is, but undoubtedly it would make things
> slower (deployment and runtime). We're supposed to be doing a web server
> API, not a bean container API. IMO.
>

+1

There are a million and one frameworks out there. We can't integrate all
of them into the servlet spec.

Isn't this sort of thing what the servlet container initializer stuff is
all about? Letting frameworks discover annotations of container created
objects/classes in an extensible way. So rather than us support every new
annotation that comes along, we provide a mechanism for annotation handling
to be plugged into the container. If it is not good enough for these
annotations, then lets improve the generic mechanism rather than integrate
a specific one.

cheers