avalon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dona...@apache.org
Subject cvs commit: jakarta-avalon-phoenix/src/java/org/apache/phoenix/engine/facilitys SarClassLoader.java
Date Mon, 05 Mar 2001 14:33:04 GMT
donaldp     01/03/05 06:33:04

  Modified:    src/java/org/apache/phoenix/engine/facilitys
                        SarClassLoader.java
  Log:
  Added toString() method.
  
  Revision  Changes    Path
  1.3       +17 -0     jakarta-avalon-phoenix/src/java/org/apache/phoenix/engine/facilitys/SarClassLoader.java
  
  Index: SarClassLoader.java
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-phoenix/src/java/org/apache/phoenix/engine/facilitys/SarClassLoader.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- SarClassLoader.java	2001/02/26 02:11:00	1.2
  +++ SarClassLoader.java	2001/03/05 14:33:00	1.3
  @@ -78,4 +78,21 @@
               addURL( files[ i ].toURL() );
           }
       }
  +
  +    public String toString()
  +    {
  +        final StringBuffer sb = new StringBuffer();
  +        sb.append( "ClassLoader[" );
  +
  +        final URL[] urls = getURLs();
  +
  +        for( int i = 0; i < urls.length; i++ )
  +        {
  +            sb.append( ' ' );
  +            sb.append( urls[ i ] );
  +        }
  +
  +        sb.append( " ]" );
  +        return sb.toString();        
  +    }
   }
  
  
  

Mime
View raw message