axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sedukhin, Igor" <>
Subject Plase review: Fix for inconsitency of WSDDProvider.registerProvid er
Date Wed, 12 Dec 2001 17:11:32 GMT
I would greatly appreciate if the following fix can be reviewed and possibly commited to the
CVS. It is really a readblock for applying a post-alhpa2 Axis to custom providers....
Thank you.
-----Original Message-----
From: Sedukhin, Igor 
Sent: Tuesday, December 11, 2001 6:28 PM
Subject: Fix for inconsitency of WSDDProvider.registerProvider

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 validates my suggestion.

Here is the CVS diff with a very simple fix. Can anyone commit this? Thanks. 

RCS file: /home/cvspublic/xml-axis/java/src/org/apache/axis/deployment/wsdd/,v

retrieving revision 1.14 
diff -r1.14 
<     public static void registerProvider(String uri, Class _class) 
>     public static void registerProvider(QName uri, WSDDProvider prov) 
<         providers.put(uri, _class); 
>         providers.put(uri, prov); 

-- Igor Sedukhin .. ( 
-- (631) 342-4325 .. 1 CA Plaza, Islandia, NY 11788 

View raw message