geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject cvs commit: incubator-geronimo/modules/core/src/java/org/apache/geronimo/deployment/loader ClassSpace.java
Date Wed, 20 Aug 2003 22:36:36 GMT
dain        2003/08/20 15:36:36

  Modified:    modules/core/src/java/org/apache/geronimo/deployment/loader
                        ClassSpace.java
  Log:
  Added debug messages which print the urls addes to the class space.
  Added a name variable.
  
  Revision  Changes    Path
  1.2       +16 -2     incubator-geronimo/modules/core/src/java/org/apache/geronimo/deployment/loader/ClassSpace.java
  
  Index: ClassSpace.java
  ===================================================================
  RCS file: /home/cvs/incubator-geronimo/modules/core/src/java/org/apache/geronimo/deployment/loader/ClassSpace.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- ClassSpace.java	11 Aug 2003 17:59:10 -0000	1.1
  +++ ClassSpace.java	20 Aug 2003 22:36:35 -0000	1.2
  @@ -60,14 +60,24 @@
   import java.util.Iterator;
   import java.util.List;
   
  +import org.apache.commons.logging.Log;
  +import org.apache.commons.logging.LogFactory;
  +
   /**
    *
    *
    * @version $Revision$ $Date$
    */
   public class ClassSpace extends URLClassLoader implements ClassSpaceMBean {
  -    public ClassSpace(URL[] urls) {
  +    private final Log log = LogFactory.getLog(getClass());
  +    private final String name;
  +    public ClassSpace(String name, URL[] urls) {
           super(urls);
  +        this.name = name;
  +        for (int i = 0; i < urls.length; i++) {
  +            URL url = urls[i];
  +            log.debug("Added url to class-space: name=" + name + " url=" +url);
  +        }
       }
   
       public void addURLs(List urls) {
  @@ -75,5 +85,9 @@
               URL url = (URL) i.next();
               addURL(url);
           }
  +    }
  +
  +    public String getName() {
  +        return name;
       }
   }
  
  
  

Mime
View raw message