avalon-cvs 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/avalon/phoenix/components/classloader SarLoaderResolver.java Resources.properties
Date Fri, 01 Nov 2002 22:55:28 GMT
donaldp     2002/11/01 14:55:28

  Modified:    src/java/org/apache/avalon/phoenix/components/classloader
                        SarLoaderResolver.java Resources.properties
  Log:
  Add some debugging messages to the resolver.
  
  Revision  Changes    Path
  1.2       +19 -6     jakarta-avalon-phoenix/src/java/org/apache/avalon/phoenix/components/classloader/SarLoaderResolver.java
  
  Index: SarLoaderResolver.java
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-phoenix/src/java/org/apache/avalon/phoenix/components/classloader/SarLoaderResolver.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- SarLoaderResolver.java	31 Oct 2002 21:52:31 -0000	1.1
  +++ SarLoaderResolver.java	1 Nov 2002 22:55:27 -0000	1.2
  @@ -7,14 +7,17 @@
    */
   package org.apache.avalon.phoenix.components.classloader;
   
  -import org.apache.excalibur.loader.builder.DefaultLoaderResolver;
  +import java.io.File;
  +import java.net.URL;
  +import java.security.Policy;
  +import java.util.Arrays;
  +import org.apache.avalon.excalibur.i18n.ResourceManager;
  +import org.apache.avalon.excalibur.i18n.Resources;
   import org.apache.avalon.excalibur.packagemanager.PackageManager;
  +import org.apache.avalon.framework.container.ContainerUtil;
   import org.apache.avalon.framework.logger.LogEnabled;
   import org.apache.avalon.framework.logger.Logger;
  -import org.apache.avalon.framework.container.ContainerUtil;
  -import java.net.URL;
  -import java.security.Policy;
  -import java.io.File;
  +import org.apache.excalibur.loader.builder.DefaultLoaderResolver;
   
   /**
    * a LoaderResolver that knows about Phoenixs environment,
  @@ -27,6 +30,9 @@
       extends DefaultLoaderResolver
       implements LogEnabled
   {
  +    private final static Resources REZ =
  +        ResourceManager.getPackageResources( SarLoaderResolver.class );
  +
       /**
        * Logger to use when reporting information
        */
  @@ -122,6 +128,13 @@
                                             final URL[] urls )
           throws Exception
       {
  +        if( m_logger.isDebugEnabled() )
  +        {
  +            final String message =
  +                REZ.getString( "resolver.loader-urls.notice",
  +                               Arrays.asList( urls ) );
  +            m_logger.debug( message );
  +        }
           final PolicyClassLoader loader =
               new PolicyClassLoader( urls, parent, m_policy );
           ContainerUtil.enableLogging( loader, m_logger );
  
  
  
  1.12      +2 -0      jakarta-avalon-phoenix/src/java/org/apache/avalon/phoenix/components/classloader/Resources.properties
  
  Index: Resources.properties
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-phoenix/src/java/org/apache/avalon/phoenix/components/classloader/Resources.properties,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- Resources.properties	1 Nov 2002 01:01:47 -0000	1.11
  +++ Resources.properties	1 Nov 2002 22:55:27 -0000	1.12
  @@ -6,3 +6,5 @@
   policy.error.keystore.aquire=Unable to aquire keyStore {0}.
   policy.error.certificate.aquire=Error aquiring certificate {0}.
   policy.error.alias.missing=Unable to locate alias {0} in keystore named {1}.
  +
  +resolver.loader-urls.notice=Creating a ClassLoader using URLs: {0}
  \ No newline at end of file
  
  
  

--
To unsubscribe, e-mail:   <mailto:avalon-cvs-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:avalon-cvs-help@jakarta.apache.org>


Mime
View raw message