Actually, there isno way to unregister an application from a server.
It would be great adding an unbind method to the ApplicationRouterImpl class and an unregister method to the HL7Service class :
public void unbindApplication(ReceivingApplication theApplication); public void unregisterApplication(ReceivingApplication theApplication);
The use case is in an OSGi context, where receiving applications can come an go at runtime. I don't want only disableBinding but really remove the binding.
For now, I have to rewrite ApplicationRouterImpl class because the myBindings list is private and HL7Service class because new ApplicationRouterImpl(parser) is hardcoded into the constructor (and is private final).
Thanks !
Diff:
allow to unbind/unregister based on ApproutingData and ReceivingApplication