User: cgjung  
  Date: 01/05/23 07:11:59

  Modified:    src/main/org/jboss/deployment/scope Scope.java
  Log:
  added possibility to load classes and resources without affecting dependencies
  directly through the scope.
  
  Revision  Changes    Path
  1.2       +3 -2      jboss/src/main/org/jboss/deployment/scope/Scope.java
  
  Index: Scope.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss/src/main/org/jboss/deployment/scope/Scope.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- Scope.java        2001/05/18 15:14:19     1.1
  +++ Scope.java        2001/05/23 14:11:59     1.2
  @@ -104,7 +104,7 @@
        */
       protected boolean addDependency(ScopedURLClassLoader source, 
ScopedURLClassLoader target) {
           // no rescursions necessary (but not volatile for the code)
  -        if(!source.equals(target)) {
  +        if(source !=null && target!=null && !source.equals(target)) {
               
               Set deps=(Set) dependencies.get(target);
               
  @@ -166,7 +166,8 @@
           } // sync
       }
       
  -    /** gets a URL on behalf of a given classloader */
  +    /** gets a URL on behalf of a given classloader which may be null
  +     *  in case that we do not check dependencies */
       public URL getResource(String name, ScopedURLClassLoader source) {
           
           // short look into the resource location cache, is synchronized in
  
  
  

_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to