Details
-
Feature Request
-
Resolution: Obsolete
-
Minor
-
None
-
1.2.1.GA
-
None
Description
A TJWSEmbeddedJaxrsServer instance is created by specifying a ResteasyDeployment instance in the constructor. I have set a custom Dispatcher in my ResteasyDeployment instance by calling setDispatcher. When you start the TJWSEmbeddedJaxrsServer using TJWSEmbeddedJaxrsServer.start() it will invoke ResteasyDeployment.start() which will "overwrite" the Dispatcher. It would be nice if a new Dispatcher would only be created if the dispatcher == null.
I worked around this by creating a subclass of ResteasyDeployment with this snippet in the start() method:
if (dispatcher == null)
registry = dispatcher.getRegistry();