|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.aspectj.weaver.loadtime.Aj
public class Aj
Adapter between the generic class pre processor interface and the AspectJ weaver Load time weaving consistency relies on Bcel.setRepository
Constructor Summary | |
---|---|
Aj()
|
|
Aj(IWeavingContext context)
|
Method Summary | |
---|---|
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(java.lang.ClassLoader loader)
|
boolean |
generatedClassesExist(java.lang.ClassLoader loader)
Check to see if any classes have been generated for a particular classes loader. |
static int |
getActiveAdaptorCount()
|
java.lang.String |
getNamespace(java.lang.ClassLoader loader)
Returns a namespace based on the contest of the aspects available |
void |
initialize()
Initialization |
byte[] |
preProcess(java.lang.String className,
byte[] bytes,
java.lang.ClassLoader loader)
Weave |
static int |
removeStaleAdaptors(boolean displayProgress)
The reference queue is only processed when a request is made for a weaver adaptor. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Aj()
public Aj(IWeavingContext context)
Method Detail |
---|
public void initialize()
initialize
in interface ClassPreProcessor
public byte[] preProcess(java.lang.String className, byte[] bytes, java.lang.ClassLoader loader)
preProcess
in interface ClassPreProcessor
className
- bytes
- loader
-
public static int removeStaleAdaptors(boolean displayProgress)
displayProgress
- produce System.err info on the tidying up process
public static int getActiveAdaptorCount()
public static void checkQ()
public java.lang.String getNamespace(java.lang.ClassLoader loader)
public boolean generatedClassesExist(java.lang.ClassLoader loader)
loader
- the class cloder
public void flushGeneratedClasses(java.lang.ClassLoader loader)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |