src/main/java/org/jboss/util/xml/CatalogLocation.java
/**
    * Seach the path for oasis catalog files. The classpath of
    * <code>Thread.currentThread().getContextClassLoader()</code>
    * is used for the lookup.
    * @return the url where the <code>jax-ws-catalog.xml</code> is located
    * @throws IOException if the catalog files cannot be loaded
    *
    */
Seach the path for oasis catalog files. The classpath of
Thread.currentThread().getContextClassLoader()
is used for the lookup.
@return the url where the jax-ws-catalog.xml is located
@throws IOException if the catalog files cannot be loaded
Seach the path for oasis catalog files . The classpath of Thread . currentThread () . getContextClassLoader () is used for the lookup . @return the url where the jax - ws - catalog . xml is located @throws IOException if the catalog files cannot be loaded
public static URL lookupCatalogFiles() throws IOException
   {
      URL url = null;
      ClassLoader loader = Thread.currentThread().getContextClassLoader();
      for (int i = 0; i < catalogFilesNames.length; i++)
      {
         url = loader.getResource(catalogFilesNames[i]);
         if (url != null)
         {
            break;
         }
      }
      return url;
   }
public static URL lookupCatalogFiles ( ) throws IOException { URL url = null ; ClassLoader loader = Thread . currentThread ( ) . getContextClassLoader ( ) ; for ( int i = 0 ; i < catalogFilesNames . length ; i ++ ) { url = loader . getResource ( catalogFilesNames [ i ] ) ; if ( url != null ) { break ; } } return url ; }
Seach the path for oasis catalog files.
Seach the path for oasis catalog files .
//JAXWS-2.-0 spec, Line 27:the current context class loader MUST be used to //retrieve all the resources with the specified name //use the first hit