]> source.dussan.org Git - aspectj.git/commitdiff
HEAD changes to optionally avoid xml parsing of aop.xml files
authoraclement <aclement>
Thu, 8 Mar 2007 08:10:10 +0000 (08:10 +0000)
committeraclement <aclement>
Thu, 8 Mar 2007 08:10:10 +0000 (08:10 +0000)
weaver/src/org/aspectj/weaver/loadtime/IWeavingContext.java

index 4e4dfc2b77441dbea3c8ab2562e88ee39bf3276b..2ff58dcd0961cf031a56e044c3329a430c0797be 100644 (file)
@@ -14,6 +14,9 @@ package org.aspectj.weaver.loadtime;
 import java.io.IOException;
 import java.net.URL;
 import java.util.Enumeration;
+import java.util.List;
+
+import org.aspectj.weaver.tools.WeavingAdaptor;
 
 /**
  * This class adds support to AspectJ for an OSGi environment
@@ -73,4 +76,14 @@ public interface IWeavingContext {
         */
        public boolean isLocallyDefined(String classname);
 
+       /**
+        * Allow custom parsing of aop.xml or alternative mechanism for providing 
+        * Definitions
+        * 
+        * @param loader
+        * @param adaptor
+        * @return List containing 0 or more Definition instances
+        */
+    public List getDefinitions(final ClassLoader loader, WeavingAdaptor adaptor);
+
 }