geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject svn commit: r524369 - /geronimo/server/trunk/modules/geronimo-axis2/src/main/java/org/apache/geronimo/axis2/client/Axis2ServiceReference.java
Date Sat, 31 Mar 2007 04:28:58 GMT
Author: dims
Date: Fri Mar 30 21:28:56 2007
New Revision: 524369

URL: http://svn.apache.org/viewvc?view=rev&rev=524369
Log:
remove system property. remove unnecessary method that returns a generated type

Modified:
    geronimo/server/trunk/modules/geronimo-axis2/src/main/java/org/apache/geronimo/axis2/client/Axis2ServiceReference.java

Modified: geronimo/server/trunk/modules/geronimo-axis2/src/main/java/org/apache/geronimo/axis2/client/Axis2ServiceReference.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/modules/geronimo-axis2/src/main/java/org/apache/geronimo/axis2/client/Axis2ServiceReference.java?view=diff&rev=524369&r1=524368&r2=524369
==============================================================================
--- geronimo/server/trunk/modules/geronimo-axis2/src/main/java/org/apache/geronimo/axis2/client/Axis2ServiceReference.java
(original)
+++ geronimo/server/trunk/modules/geronimo-axis2/src/main/java/org/apache/geronimo/axis2/client/Axis2ServiceReference.java
Fri Mar 30 21:28:56 2007
@@ -49,26 +49,21 @@
                                  String handlerChainsXML,
                                  Map<Object, EndpointInfo> seiInfoMap) {
         super(handlerChainsXML, seiInfoMap, name, serviceQName, wsdlURI, referenceClassName,
serviceClassName);
-        System.setProperty("javax.xml.ws.spi.Provider", "org.apache.axis2.jaxws.spi.Provider");
     }
 
-    protected HandlerChainsType getHandlerChains() {
+    protected HandlerResolver getHandlerResolver(Class serviceClass) {
+        HandlerChainsType types = null;
         try {
-            if (this.handlerChainsXML == null) //handlerChains could be null if they are
not specified.
-                return null;
-            else
-                return HandlerChainsDocument.Factory.parse(this.handlerChainsXML).getHandlerChains();
+            if (this.handlerChainsXML != null){
+                types = HandlerChainsDocument.Factory.parse(this.handlerChainsXML).getHandlerChains();
+            }
         } catch (Exception e) {
             log.warn("Failed to deserialize handler chains", e);
-            return null;
         }
-    }
-
-    protected HandlerResolver getHandlerResolver(Class serviceClass) {
         JAXWSAnnotationProcessor annotationProcessor =
                 new JAXWSAnnotationProcessor(new JNDIResolver(), new WebServiceContextImpl());
         Axis2HandlerResolver handlerResolver =
-                new Axis2HandlerResolver(classLoader, serviceClass, getHandlerChains(), annotationProcessor);
+                new Axis2HandlerResolver(classLoader, serviceClass, types, annotationProcessor);
         return handlerResolver;
     }
 }



Mime
View raw message