Description
When using something like:
new SpringBusFactory().createBus(configUrl);
to programatically create a Bus with a config file within OSGi bundle, namespace handlers cannot be found.
Honestly, I'm not sure what CAN be done about this, although I have a few things that can help. I'm going to add a param to the SpringBusFactory that can be used to set the NamespaceHandlerResolver that we'll then use. Spring-DM maintains a NamespaceHandlerResolver as an OSGi service. Thus, a user can grab that service from the OSGi service registry and pass that into the SpringBusFactory and we can use it. Requires some user interaction to wire that in, but minimal. Ideally, the user should just use spring-dm or blueprint and not do something like this, but at least this should provide a workaround.