owenb       2003/03/31 07:55:13

  Modified:    java/src/org/apache/wsif/util WSIFPluggableProviders.java
  Log:
  when multiple providers are found that support the same namespace, record 
information in trace rather than issuing a message
  
  Revision  Changes    Path
  1.9       +8 -8      
xml-axis-wsif/java/src/org/apache/wsif/util/WSIFPluggableProviders.java
  
  Index: WSIFPluggableProviders.java
  ===================================================================
  RCS file: 
/home/cvs/xml-axis-wsif/java/src/org/apache/wsif/util/WSIFPluggableProviders.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- WSIFPluggableProviders.java       26 Mar 2003 15:25:16 -0000      1.8
  +++ WSIFPluggableProviders.java       31 Mar 2003 15:55:12 -0000      1.9
  @@ -495,7 +495,7 @@
       }
   
       /**
  -     * Issues a MessageLoger warning saying multiple providers 
  +     * Record the fact that multiple providers 
        * exist with support for the same namespaceURI.
        * @param uri   the namespaceURI with multiple WSIFProviders 
        * @param providers  an array of the providers supporting the namespaceURI 
  @@ -507,11 +507,12 @@
           for (int i = 1; i < providers.size(); i++) {
               providerNames += ", " + providers.get(i).getClass().getName();
           }
  -        MessageLogger.log("WSIF.0006W", uri, providerNames);
  +        Trc.event(null, "- Multiple WSIFProvider found supporting the same 
namespace URI \'"
  +            + uri + "\'. Found (\'" + providerNames + "\')");
       }
   
       /**
  -     * Issues a MessageLoger information message saying which provider has 
  +     * Record which provider has 
        * been chosen to support a namespaceURI when multiple providers are available.
        * @param uri   the namespaceURI with multiple WSIFProviders 
        * @param providers  an array of the providers supporting the namespaceURI 
  @@ -519,11 +520,10 @@
       private static void issueChosenProviderMsg(
           String uri,
           WSIFProvider provider) {
  -
  -        MessageLogger.log(
  -            "WSIF.0007I",
  -            provider == null ? "null" : provider.getClass().getName(),
  -            uri);
  +             
  +        String provName = (provider == null) ? "null" : 
provider.getClass().getName();
  +        Trc.event(null, "- Using WSIFProvider \'" + provName + "\' for namespaceURI 
\'" + 
  +            uri + "\'");
       }
   
   }
  
  
  

Reply via email to