From: Paul Sandoz <Paul.Sandoz_at_Sun.COM>
Date: Mon, 17 Sep 2007 18:26:55 +0200
Aaron Anderson wrote:
> Any chance that HttpResponseAdapter or HttpRequestAdapter could be
> moved to a SPI util package? ServletAdaptor keeps it's WebApplication
> instance private so sub-classes cannot mutate it.
>
Would it be better to define an AbstractServletAdapter that can be
extended? since there are some subtle issues around supporting thread
local stuff that can be implemented by AbstractServletAdapter.
> Also, I noticed WebApplicationImpl contains the method public void
> register(Set<Class> resourceClasses). Will that eventually make it into
> the WebApplication SPI?
>
We can do that. I also think it worthwhile putting a default
ResourceConfig implementation in the API.
We are planning to change ResourceConfig so that as well as features one
can add properties to this, this could be a way to pass in the instance
of a particular ResourceProviderFactory to the RootResourceClass using
an agreed property name.