aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--weaver/src/org/aspectj/weaver/tools/WeavingAdaptor.java11
1 files changed, 11 insertions, 0 deletions
diff --git a/weaver/src/org/aspectj/weaver/tools/WeavingAdaptor.java b/weaver/src/org/aspectj/weaver/tools/WeavingAdaptor.java
index 5f1205d3e..e27eb75c3 100644
--- a/weaver/src/org/aspectj/weaver/tools/WeavingAdaptor.java
+++ b/weaver/src/org/aspectj/weaver/tools/WeavingAdaptor.java
@@ -239,6 +239,17 @@ public class WeavingAdaptor implements IMessageContext {
warn("bad library: '" + libFile + "'");
}
}
+
+ /**
+ * Weave a class using aspects previously supplied to the adaptor.
+ * @param name the name of the class
+ * @param bytes the class bytes
+ * @return the woven bytes
+ * @exception IOException weave failed
+ */
+ public byte[] weaveClass(String name, byte[] bytes) throws IOException {
+ return weaveClass(name,bytes,false);
+ }
/**
* Weave a class using aspects previously supplied to the adaptor.