ws-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From veit...@apache.org
Subject svn commit: r1577349 - /webservices/axiom/trunk/modules/axiom-api/src/main/java/org/apache/axiom/locator/Activator.java
Date Thu, 13 Mar 2014 22:25:23 GMT
Author: veithen
Date: Thu Mar 13 22:25:23 2014
New Revision: 1577349

URL: http://svn.apache.org/r1577349
Log:
Added some more logging.

Modified:
    webservices/axiom/trunk/modules/axiom-api/src/main/java/org/apache/axiom/locator/Activator.java

Modified: webservices/axiom/trunk/modules/axiom-api/src/main/java/org/apache/axiom/locator/Activator.java
URL: http://svn.apache.org/viewvc/webservices/axiom/trunk/modules/axiom-api/src/main/java/org/apache/axiom/locator/Activator.java?rev=1577349&r1=1577348&r2=1577349&view=diff
==============================================================================
--- webservices/axiom/trunk/modules/axiom-api/src/main/java/org/apache/axiom/locator/Activator.java
(original)
+++ webservices/axiom/trunk/modules/axiom-api/src/main/java/org/apache/axiom/locator/Activator.java
Thu Mar 13 22:25:23 2014
@@ -21,6 +21,8 @@ package org.apache.axiom.locator;
 import org.apache.axiom.om.OMAbstractFactory;
 import org.apache.axiom.om.OMMetaFactoryLocator;
 import org.apache.axiom.om.util.StAXUtils;
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
 import org.osgi.framework.Bundle;
 import org.osgi.framework.BundleActivator;
 import org.osgi.framework.BundleContext;
@@ -32,6 +34,8 @@ import org.osgi.util.tracker.BundleTrack
  * {@link OMAbstractFactory#setMetaFactoryLocator(OMMetaFactoryLocator)}.
  */
 public class Activator implements BundleActivator {
+    private static final Log log = LogFactory.getLog(Activator.class);
+    
     private BundleTracker tracker;
 
     public void start(BundleContext context) throws Exception {
@@ -48,11 +52,13 @@ public class Activator implements Bundle
         // Axiom from creating new factory instances unnecessarily. The setting may be more
relevant if the
         // StAX API is provided by the JRE.
         StAXUtils.setFactoryPerClassLoader(false);
+        log.debug("OSGi support enabled");
     }
 
     public void stop(BundleContext context) throws Exception {
         tracker.close();
         OMAbstractFactory.setMetaFactoryLocator(null);
         StAXUtils.setFactoryPerClassLoader(true);
+        log.debug("OSGi support disabled");
     }
 }



Mime
View raw message