private Object setCXFBusInternal() {
return BusFactory.getAndSetThreadDefaultBus((Bus)cxfBus);
}
private void createCXFBus() {
BlueprintBus bp = new BlueprintBus();
bp.setBundleContext(bundleContext);
bp.setBlueprintContainer(container);
bp.setId("WS-Notification");
bp.initialize();
if (null != bundleContext) {
Properties props = new Properties();
props.put(CONTEXT_SYMBOLIC_NAME_PROPERTY, bundleContext.getBundle().getSymbolicName());
props.put(CONTEXT_VERSION_PROPERTY, getBundleVersion(bundleContext.getBundle()));
props.put(CONTEXT_NAME_PROPERTY, bp.getId());
bundleContext.registerService(Bus.class.getName(), bp, props);
}
cxfBus = bp;
}