in jax-rs.whiteboard/src/main/java/org/apache/aries/jax/rs/whiteboard/activator/CxfJaxrsBundleActivator.java [99:147]
public void start(BundleContext bundleContext) throws Exception {
RuntimeDelegate.setInstance(new RuntimeDelegateImpl());
if (_log.isDebugEnabled()) {
_log.debug("Starting the whiteboard factory");
}
OSGi<?> runWhiteboards =
all(
configurations("org.apache.aries.jax.rs.whiteboard"),
coalesce(
configuration("org.apache.aries.jax.rs.whiteboard.default"),
just(() -> {
Dictionary<String, Object> properties =
new Hashtable<>();
properties.put(
Constants.SERVICE_PID,
"org.apache.aries.jax.rs.whiteboard.default");
return properties;
})
)
).filter(
c -> !Objects.equals(c.get("enabled"), "false")
).
effects(
debugTracking(_log, () -> "whiteboard configuration")
).flatMap(configuration ->
runWhiteboard(bundleContext, configuration)
);
_defaultOSGiResult =
waitForCXF().
then(
all(
ignore(registerRuntimeDelegate()),
ignore(registerClient()),
ignore(registerSseEventSourceFactory()),
ignore(registerSseEventSourceBuilder()),
ignore(runWhiteboards)
)
).
run(bundleContext);
if (_log.isDebugEnabled()) {
_log.debug("Whiteboard factory started");
}
}