axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ga...@apache.org
Subject svn commit: r658270 - /webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/server/dispatcher/ProviderDispatcher.java
Date Tue, 20 May 2008 15:03:38 GMT
Author: gawor
Date: Tue May 20 08:03:38 2008
New Revision: 658270

URL: http://svn.apache.org/viewvc?rev=658270&view=rev
Log:
allow DataSource Provider implementation (part of AXIS2-3805)

Modified:
    webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/server/dispatcher/ProviderDispatcher.java

Modified: webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/server/dispatcher/ProviderDispatcher.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/server/dispatcher/ProviderDispatcher.java?rev=658270&r1=658269&r2=658270&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/server/dispatcher/ProviderDispatcher.java
(original)
+++ webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/server/dispatcher/ProviderDispatcher.java
Tue May 20 08:03:38 2008
@@ -48,7 +48,6 @@
 import org.apache.commons.logging.LogFactory;
 
 import javax.activation.DataSource;
-import javax.xml.bind.JAXBContext;
 import javax.xml.soap.SOAPMessage;
 import javax.xml.stream.XMLStreamException;
 import javax.xml.transform.Source;
@@ -499,8 +498,8 @@
             provider = (Provider<Source>)serviceInstance;
         } else if (clazz == SOAPMessage.class) {
             provider = (Provider<SOAPMessage>)serviceInstance;
-        } else if (clazz == JAXBContext.class) {
-            provider = (Provider<JAXBContext>)serviceInstance;
+        } else if (clazz == DataSource.class) {
+            provider = (Provider<DataSource>)serviceInstance;
         }
 
         if (provider == null) {
@@ -590,7 +589,7 @@
                     SOAPEnvelopeBlockFactory.class);
         } else {
             throw ExceptionFactory.makeWebServiceException(
-            		Messages.getMessage("bFactoryErr",type.getClass().getName()));
+            		Messages.getMessage("bFactoryErr",type.getName()));
         }
 
         return _blockFactory;



Mime
View raw message