axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ru...@apache.org
Subject cvs commit: xml-axis/java/src/org/apache/axis/deployment/wsdd WSDDProvider.java
Date Wed, 12 Dec 2001 18:57:11 GMT
rubys       01/12/12 10:57:11

  Modified:    java/src/org/apache/axis/deployment/wsdd WSDDProvider.java
  Log:
  Submitted by:   Igor  Sedukhin <Igor.Sedukhin@ca.com>
  
  As post alpha2 deployment architecture changed, I was trying to register a
  custom provider (as an alternative to registering a generic handler).
  WSDDProvider API allows me to, but there is inconsistency with the rest of
  the code: everywhere the assumption is that WSDDProvider.providers
  hashtable contains instances of WSDDProvider, the registerProvider API takes
  class, and obviously, there is no way to cast an object to a class.
  WSDDProvider.providers hashtable is also declared private, so there is no
  way around -- the API has to be fixed. The already existing static code
  block in the beginning of the WSDDProvider.java validates my suggestion.
  
  Revision  Changes    Path
  1.15      +2 -2      xml-axis/java/src/org/apache/axis/deployment/wsdd/WSDDProvider.java
  
  Index: WSDDProvider.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/deployment/wsdd/WSDDProvider.java,v
  retrieving revision 1.14
  retrieving revision 1.15
  diff -u -r1.14 -r1.15
  --- WSDDProvider.java	2001/11/13 21:08:32	1.14
  +++ WSDDProvider.java	2001/12/12 18:57:11	1.15
  @@ -102,9 +102,9 @@
        * @param uri XXX
        * @param _class XXX
        */
  -    public static void registerProvider(String uri, Class _class)
  +    public static void registerProvider(QName uri, WSDDProvider prov)
       {
  -        providers.put(uri, _class);
  +        providers.put(uri, prov);
       }
   
       /**
  
  
  

Mime
View raw message