org.aspectj.weaver.loadtime
public class ClassLoaderWeavingAdaptor extends WeavingAdaptor
WeavingAdaptor.WeavingAdaptorMessageHolder, WeavingAdaptor.WeavingAdaptorMessageWriter
activeProtectionDomain, bcelWorld, delegateForCurrentClass, generatedClasses, generatedClassHandler, SHOW_WEAVE_INFO_PROPERTY, TRACE_MESSAGES_PROPERTY, verbose, weaver, WEAVING_ADAPTOR_VERBOSE
Constructor and Description |
---|
ClassLoaderWeavingAdaptor() |
ClassLoaderWeavingAdaptor(ClassLoader deprecatedLoader,
IWeavingContext deprecatedContext)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
accept(String className,
byte[] bytes)
Determine whether a type should be accepted for weaving, by checking it against any includes/excludes.
|
void |
flushGeneratedClasses()
Flush the generated classes cache
|
boolean |
generatedClassesExistFor(String className)
Check to see if any classes are stored in the generated classes cache.
|
String |
getContextId() |
protected String |
getDumpDir() |
String |
getNamespace() |
void |
initialize(ClassLoader classLoader,
IWeavingContext context) |
protected void |
lint(String name,
String[] infos) |
protected boolean |
shouldDump(String className,
boolean before) |
addURL, createMessageHandler, debug, disable, dump, enable, ensureDelegateInitialized, error, error, getMessageHandler, getMessageHolder, info, isEnabled, setActiveProtectionDomain, setMessageHandler, warn, warn, weaveClass, weaveClass
public ClassLoaderWeavingAdaptor()
public ClassLoaderWeavingAdaptor(ClassLoader deprecatedLoader, IWeavingContext deprecatedContext)
public void initialize(ClassLoader classLoader, IWeavingContext context)
public String getContextId()
getContextId
in interface org.aspectj.bridge.IMessageContext
getContextId
in class WeavingAdaptor
protected boolean accept(String className, byte[] bytes)
accept
in class WeavingAdaptor
className
- the name of the type to possibly acceptbytes
- the bytecode for the type (in case we need to look inside, eg. annotations)protected boolean shouldDump(String className, boolean before)
shouldDump
in class WeavingAdaptor
protected String getDumpDir()
getDumpDir
in class WeavingAdaptor
public String getNamespace()
public boolean generatedClassesExistFor(String className)
className
- TODOpublic void flushGeneratedClasses()