public class Aj extends Object implements ClassPreProcessor
| Modifier and Type | Field and Description |
|---|---|
static org.aspectj.weaver.tools.cache.SimpleCache |
laCache |
static List<String> |
loadersToSkip |
| 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 ClassPreProcessorpublic byte[] preProcess(String className, byte[] bytes, ClassLoader loader, ProtectionDomain protectionDomain)
preProcess in interface ClassPreProcessorclassName - 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)