njbartlett/jaxrs-osgi-extender — pull request #3 by brindy (2012-10-25 17:06:02+00:00)
Title: Support JAX-RS Singletons and update for latest Bndtools

The extender now listens for services and if it sees one that has JAX-RS annotations re-registers the BundleApplication with a reference to that service.

The main reason for this was that I wanted to be able to use DS for dependency injection but couldn't see how to do either with the "Resource Class" approach.

There are two slight problems:
1) I couldn't get the test bundle to even run (never mind fail) - I was hoping you could have a quick look at it and see if it's anything obvious. I'm happy to do more work / add more tests for the functionality I've added.

2) If a single bundle registers several services as JAX-RS singletons then the re-registration process happens for each one so might slow down start up or cause a delay if a bundle/service gets redeployed at runtime.