servicemix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ff...@apache.org
Subject svn commit: r711508 - in /servicemix/smx4/specs/trunk: jaxp-api-1.3/src/main/java/javax/xml/xpath/XPathFactoryFinder.java jaxp-api-1.4/src/main/java/javax/xml/xpath/XPathFactoryFinder.java
Date Wed, 05 Nov 2008 04:33:14 GMT
Author: ffang
Date: Tue Nov  4 20:33:14 2008
New Revision: 711508

URL: http://svn.apache.org/viewvc?rev=711508&view=rev
Log:
[SMX4KNL-134]XPathFactoryFinder in jaxp api should use factoryId to load the spi class in
osgi enviroment

Modified:
    servicemix/smx4/specs/trunk/jaxp-api-1.3/src/main/java/javax/xml/xpath/XPathFactoryFinder.java
    servicemix/smx4/specs/trunk/jaxp-api-1.4/src/main/java/javax/xml/xpath/XPathFactoryFinder.java

Modified: servicemix/smx4/specs/trunk/jaxp-api-1.3/src/main/java/javax/xml/xpath/XPathFactoryFinder.java
URL: http://svn.apache.org/viewvc/servicemix/smx4/specs/trunk/jaxp-api-1.3/src/main/java/javax/xml/xpath/XPathFactoryFinder.java?rev=711508&r1=711507&r2=711508&view=diff
==============================================================================
--- servicemix/smx4/specs/trunk/jaxp-api-1.3/src/main/java/javax/xml/xpath/XPathFactoryFinder.java
(original)
+++ servicemix/smx4/specs/trunk/jaxp-api-1.3/src/main/java/javax/xml/xpath/XPathFactoryFinder.java
Tue Nov  4 20:33:14 2008
@@ -161,7 +161,7 @@
         
         try {
             // If we are deployed into an OSGi environment, leverage it
-            Class spiClass = org.apache.servicemix.specs.locator.OsgiLocator.locate(propertyName);
+            Class spiClass = org.apache.servicemix.specs.locator.OsgiLocator.locate(SERVICE_CLASS.getName());
             if (spiClass != null) {
                 return (XPathFactory) spiClass.newInstance();
             }

Modified: servicemix/smx4/specs/trunk/jaxp-api-1.4/src/main/java/javax/xml/xpath/XPathFactoryFinder.java
URL: http://svn.apache.org/viewvc/servicemix/smx4/specs/trunk/jaxp-api-1.4/src/main/java/javax/xml/xpath/XPathFactoryFinder.java?rev=711508&r1=711507&r2=711508&view=diff
==============================================================================
--- servicemix/smx4/specs/trunk/jaxp-api-1.4/src/main/java/javax/xml/xpath/XPathFactoryFinder.java
(original)
+++ servicemix/smx4/specs/trunk/jaxp-api-1.4/src/main/java/javax/xml/xpath/XPathFactoryFinder.java
Tue Nov  4 20:33:14 2008
@@ -161,7 +161,7 @@
         
         try {
             // If we are deployed into an OSGi environment, leverage it
-            Class spiClass = org.apache.servicemix.specs.locator.OsgiLocator.locate(propertyName);
+            Class spiClass = org.apache.servicemix.specs.locator.OsgiLocator.locate(SERVICE_CLASS.getName());
             if (spiClass != null) {
                 return (XPathFactory) spiClass.newInstance();
             }



Mime
View raw message