On Mar 15, 2010, at 1:28 PM, James Strachan wrote:
> On 15 March 2010 12:02, Paul Sandoz <Paul.Sandoz_at_sun.com> wrote:
>> Hi James.
>>
>> Quick info for now until i digest your email:
>>
>> http://blogs.sun.com/sandoz/entry/javarebel_and_jersey_take_2
>>
>> This was done almost two years ago so things may have changed.
>
> Awesome! I'd totally missed that - thanks! My quick Google didn't find
> it either :)
>
> Did the code ever end up anywhere?
>
No, nothing committed or maintained.
To use with ServletContainer you currently have to extend it like this:
public static class ReloadServletContainer extends
ServletContainer {
@Override
protected void configure(WebConfig wc, ResourceConfig rc,
WebApplication wa) {
super.configure(wc, rc, wa);
Reloader r = new Reloader();
rc.getProperties().put(ResourceConfig.PROPERTY_CONTAINER_NOTIFIER, r);
}
}
But it should be easy to modify such that a class can be declared
instead in the web.xml.
Paul.