]> source.dussan.org Git - aspectj.git/commitdiff
enable construction of a BcelWorld with an externally provided
authoracolyer <acolyer>
Tue, 8 Jun 2004 15:02:50 +0000 (15:02 +0000)
committeracolyer <acolyer>
Tue, 8 Jun 2004 15:02:50 +0000 (15:02 +0000)
ClassPathManager

weaver/src/org/aspectj/weaver/bcel/BcelWorld.java

index 512af4143e5579211ea5c2f3f5ee2406e4f769bb..57a5c8988e329990ad0f1ca97fbeb47478a8748c 100644 (file)
@@ -90,6 +90,12 @@ public class BcelWorld extends World {
                setXRefHandler(xrefHandler);
        }
        
+       public BcelWorld(ClassPathManager cpm, IMessageHandler handler, ICrossReferenceHandler xrefHandler) {
+               this.classPath = cpm;
+               setMessageHandler(handler);
+               setXRefHandler(xrefHandler);
+       }
+       
        public void addPath (String name) {
                classPath.addPath(name, this.getMessageHandler());
        }