org.aspectj.weaver.loadtime
public class Aj extends Object implements ClassPreProcessor
Constructor and Description |
---|
Aj() |
Aj(IWeavingContext context) |
Modifier and Type | Method and Description |
---|---|
static void |
checkQ()
Process the reference queue that contains stale AdaptorKeys - the keys are put on the queue when their classloader referent
is garbage collected and so the associated adaptor (weaver) should be removed from the map
|
void |
flushGeneratedClasses(ClassLoader loader) |
boolean |
generatedClassesExist(ClassLoader loader)
Check to see if any classes have been generated for a particular classes loader.
|
static int |
getActiveAdaptorCount() |
String |
getNamespace(ClassLoader loader)
Returns a namespace based on the contest of the aspects available
|
void |
initialize()
Initialization
|
byte[] |
preProcess(String className,
byte[] bytes,
ClassLoader loader,
ProtectionDomain protectionDomain)
Weave
|
static int |
removeStaleAdaptors(boolean displayProgress)
The reference queue is only processed when a request is made for a weaver adaptor.
|
public Aj()
public Aj(IWeavingContext context)
public void initialize()
initialize
in interface ClassPreProcessor
public byte[] preProcess(String className, byte[] bytes, ClassLoader loader, ProtectionDomain protectionDomain)
preProcess
in interface ClassPreProcessor
className
- bytes
- loader
- public static int removeStaleAdaptors(boolean displayProgress)
displayProgress
- produce System.err info on the tidying up processpublic static int getActiveAdaptorCount()
public static void checkQ()
public String getNamespace(ClassLoader loader)
public boolean generatedClassesExist(ClassLoader loader)
loader
- the class cloderpublic void flushGeneratedClasses(ClassLoader loader)