Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlyn Normington2010-09-03 05:55:51 -0400
committerGlyn Normington2010-09-03 05:55:51 -0400
commit0e4bf901648e48d9d319546b6d77420a4901a481 (patch)
tree62407c2fda780ea280fece46e32fca154fa5a72b /org.eclipse.virgo.medic.core
parent43b5479f3d45541fb3a4502cec4f82a11c986bf8 (diff)
downloadorg.eclipse.virgo.medic-0e4bf901648e48d9d319546b6d77420a4901a481.tar.gz
org.eclipse.virgo.medic-0e4bf901648e48d9d319546b6d77420a4901a481.tar.xz
org.eclipse.virgo.medic-0e4bf901648e48d9d319546b6d77420a4901a481.zip
add comment to record understanding
Diffstat (limited to 'org.eclipse.virgo.medic.core')
-rw-r--r--org.eclipse.virgo.medic.core/src/main/java/org/eclipse/virgo/medic/impl/MedicActivator.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/org.eclipse.virgo.medic.core/src/main/java/org/eclipse/virgo/medic/impl/MedicActivator.java b/org.eclipse.virgo.medic.core/src/main/java/org/eclipse/virgo/medic/impl/MedicActivator.java
index 3bc296b..f12f5b8 100644
--- a/org.eclipse.virgo.medic.core/src/main/java/org/eclipse/virgo/medic/impl/MedicActivator.java
+++ b/org.eclipse.virgo.medic.core/src/main/java/org/eclipse/virgo/medic/impl/MedicActivator.java
@@ -219,6 +219,13 @@ public final class MedicActivator implements BundleActivator {
return new StandardContextSelectorDelegate(loggingCallerLocator, configurationLocator, bundleContext.getBundle(), loggerContextConfigurer);
}
+ /**
+ * Logging configuration is located by searching up to two sources, depending on the bundle doing the logging.
+ * <p>
+ * Firstly, if and only if the bundle has a specific Medic manifest header, the service registry is searched in
+ * a location specified in the manifest header. Secondly, if the configuration has not already been found, the
+ * the bundle's resources are checked for a Logback configuration file.
+ */
private static ConfigurationLocator createConfigurationLocator(BundleContext bundleContext) {
return new CompositeConfigurationLocator(new ServiceRegistryConfigurationLocator(bundleContext), new BundleResourceConfigurationLocator());
}

Back to the top