Title: [1019] trunk/core/src/main/java/org/servicemix/components/util/SpringBootstrap.java: Added log statements
- Revision
- 1019
- Author
- gastaldi
- Date
- 2005-12-06 08:56:27 -0500 (Tue, 06 Dec 2005)
Log Message
Added log statements
Modified Paths
Diff
Modified: trunk/core/src/main/java/org/servicemix/components/util/SpringBootstrap.java (1018 => 1019)
--- trunk/core/src/main/java/org/servicemix/components/util/SpringBootstrap.java 2005-12-06 13:49:39 UTC (rev 1018)
+++ trunk/core/src/main/java/org/servicemix/components/util/SpringBootstrap.java 2005-12-06 13:56:27 UTC (rev 1019)
@@ -17,6 +17,8 @@
**/
package org.servicemix.components.util;
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
import org.servicemix.jbi.NotInitialisedYetException;
import org.servicemix.jbi.container.ActivationSpec;
import org.springframework.beans.BeansException;
@@ -41,7 +43,8 @@
private InstallationContext installContext;
private ObjectName extensionMBeanName;
private ApplicationContext applicationContext;
-
+ private static Log log = LogFactory.getLog(SpringBootstrap.class);
+
public void init(InstallationContext installContext) throws JBIException {
this.installContext = installContext;
}
@@ -58,11 +61,16 @@
throw new NotInitialisedYetException();
}
DocumentFragment fragment = installContext.getInstallationDescriptorExtension();
-
+ if (fragment != null) {
+ log.debug("Installation Descriptor Extension Found");
+ } else {
+ log.debug("Installation Descriptor Extension Not Found !");
+ }
// lets load this from Spring...
Map map = applicationContext.getBeansOfType(ActivationSpec.class, false, false);
for (Iterator iter = map.values().iterator(); iter.hasNext(); ) {
ActivationSpec spec = (ActivationSpec) iter.next();
+ log.debug("Registering "+spec.getComponentName());
}
}