Class WeavingAdaptor

java.lang.Object
org.aspectj.weaver.tools.WeavingAdaptor
All Implemented Interfaces:
IMessageContext
Direct Known Subclasses:
ClassLoaderWeavingAdaptor

public class WeavingAdaptor extends Object implements IMessageContext
This adaptor allows the AspectJ compiler to be embedded in an existing system to facilitate load-time weaving. It provides an interface for a weaving class loader to provide a classpath to be woven by a set of aspects. A callback is supplied to allow a class loader to define classes generated by the compiler during the weaving process.

A weaving class loader should create a WeavingAdaptor before any classes are defined, typically during construction. The set of aspects passed to the adaptor is fixed for the lifetime of the adaptor although the classpath can be augmented. A system property can be set to allow verbose weaving messages to be written to the console.