package org.argeo.api.a2;
-import org.argeo.init.osgi.OsgiBootUtils;
+import java.lang.System.Logger;
+import java.lang.System.Logger.Level;
+
import org.osgi.framework.Bundle;
import org.osgi.framework.BundleContext;
import org.osgi.framework.FrameworkUtil;
* A running OSGi bundle context seen as a {@link AbstractProvisioningSource}.
*/
class OsgiContext extends AbstractProvisioningSource {
+ private final static Logger logger = System.getLogger(OsgiContext.class.getName());
+
private final BundleContext bc;
private A2Contribution runtimeContribution;
Version version = bundle.getVersion();
A2Component component = runtimeContribution.getOrAddComponent(componentId);
A2Module module = component.getOrAddModule(version, bundle);
- if (OsgiBootUtils.isDebug())
- OsgiBootUtils.debug("Registered bundle module " + module + " (location id: " + bundle.getLocation() + ")");
+ logger.log(Level.TRACE,
+ () -> "Registered bundle module " + module + " (location id: " + bundle.getLocation() + ")");
}
}