axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject svn commit: r645368 - in /webservices/axis2/branches/java/1_4/modules/metadata/src/org/apache/axis2/jaxws/description/impl: DescriptionUtils.java HandlerChainsParser.java
Date Mon, 07 Apr 2008 04:23:51 GMT
Author: dims
Date: Sun Apr  6 21:23:51 2008
New Revision: 645368

URL: http://svn.apache.org/viewvc?rev=645368&view=rev
Log:
Fix for AXIS2-3709 - Improve handler-chains.xml parsing (svn revision in trunk is 645366)

Added:
    webservices/axis2/branches/java/1_4/modules/metadata/src/org/apache/axis2/jaxws/description/impl/HandlerChainsParser.java
      - copied unchanged from r645366, webservices/axis2/trunk/java/modules/metadata/src/org/apache/axis2/jaxws/description/impl/HandlerChainsParser.java
Modified:
    webservices/axis2/branches/java/1_4/modules/metadata/src/org/apache/axis2/jaxws/description/impl/DescriptionUtils.java

Modified: webservices/axis2/branches/java/1_4/modules/metadata/src/org/apache/axis2/jaxws/description/impl/DescriptionUtils.java
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_4/modules/metadata/src/org/apache/axis2/jaxws/description/impl/DescriptionUtils.java?rev=645368&r1=645367&r2=645368&view=diff
==============================================================================
--- webservices/axis2/branches/java/1_4/modules/metadata/src/org/apache/axis2/jaxws/description/impl/DescriptionUtils.java
(original)
+++ webservices/axis2/branches/java/1_4/modules/metadata/src/org/apache/axis2/jaxws/description/impl/DescriptionUtils.java
Sun Apr  6 21:23:51 2008
@@ -330,15 +330,8 @@
     
     public static HandlerChainsType loadHandlerChains(InputStream is, ClassLoader classLoader)
{
         try {
-            // All the classes we need should be part of this package
-            JAXBContext jc = JAXBContext
-                    .newInstance("org.apache.axis2.jaxws.description.xml.handler", classLoader);
-
-            Unmarshaller u = jc.createUnmarshaller();
-
-            JAXBElement<?> o = (JAXBElement<?>)u.unmarshal(is);
-            return (HandlerChainsType)o.getValue();
-
+            HandlerChainsParser parser = new HandlerChainsParser();
+            return parser.loadHandlerChains(is);
         } catch (Exception e) {
             throw ExceptionFactory
                     .makeWebServiceException(Messages.getMessage("loadHandlerChainErr", e.getMessage()));



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org


Mime
View raw message