in jax-rs.whiteboard/src/main/java/org/apache/aries/jax/rs/whiteboard/internal/AriesJaxrsServiceRuntime.java [718:749]
public ApplicationRuntimeInformation setApplicationForPath(
String path, CachingServiceReference<Application> serviceReference,
CxfJaxrsServiceRegistrator cxfJaxRsServiceRegistrator) {
ApplicationRuntimeInformation ari = new ApplicationRuntimeInformation(
serviceReference, cxfJaxRsServiceRegistrator);
return _applications.compute(
path,
(__, prop) -> {
if (DEFAULT_NAME.equals(
getServiceName(
ari._cachingServiceReference::getProperty))) {
if (_log.isDebugEnabled()) {
_log.debug(
"Setting application {} as default",
serviceReference);
}
_defaultApplicationProperties = ari;
}
if (_log.isDebugEnabled()) {
_log.debug(
"Registering application {} for path {}",
serviceReference, path);
}
return ari;
});
}