From: Bob Thule <bobthule_at_gmail.com>
Date: Mon, 28 Jul 2014 22:28:50 -0400
I am working on jersey plugin for HotswapAgent, an open source alternative
to jrebel. I have a working plugin, but I don't feel it is optimal, and I
am hoping I can find help here on how to improve it.
Currently, any time the plugin detects a relevant class change for Jersey,
it calls reload() on the ServletContainer. Which isn't terrible, but that
does end up calling configure() on registered HK2 binders, which calls
provide() on any Factorys-- and that can take a lot of time.
Is there a way to do this by invalidating the ResourceConfig cache and
reloading the ResourceConfig State?