Package org.aspectj.weaver.loadtime
Klasse ClassLoaderWeavingAdaptor
java.lang.Object
org.aspectj.weaver.tools.WeavingAdaptor
org.aspectj.weaver.loadtime.ClassLoaderWeavingAdaptor
- Alle implementierten Schnittstellen:
IMessageContext
- Autor:
- Alexandre Vasseur, Andy Clement, Abraham Nevado, David Knibb, John Kew
-
Verschachtelte Klassen - Übersicht
Von Klasse geerbte verschachtelte Klassen/Schnittstellen org.aspectj.weaver.tools.WeavingAdaptor
WeavingAdaptor.WeavingAdaptorMessageHolder, WeavingAdaptor.WeavingAdaptorMessageWriter
-
Feldübersicht
Von Klasse geerbte Felder org.aspectj.weaver.tools.WeavingAdaptor
activeProtectionDomain, bcelWorld, cache, delegateForCurrentClass, generatedClasses, generatedClassHandler, SHOW_WEAVE_INFO_PROPERTY, TRACE_MESSAGES_PROPERTY, verbose, weaver, WEAVING_ADAPTOR_VERBOSE
-
Konstruktorübersicht
KonstruktorBeschreibungClassLoaderWeavingAdaptor
(ClassLoader deprecatedLoader, IWeavingContext deprecatedContext) Veraltet. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungprotected boolean
Determine whether a type should be accepted for weaving, by checking it against any includes/excludes.void
Flush the generated classes cachevoid
flushGeneratedClassesFor
(String className) Remove generated classes based on the supplied className.boolean
generatedClassesExistFor
(String className) Check to see if any classes are stored in the generated classes cache.protected String
void
initialize
(ClassLoader classLoader, IWeavingContext context) protected void
protected boolean
shouldDump
(String className, boolean before) Von Klasse geerbte Methoden org.aspectj.weaver.tools.WeavingAdaptor
addURL, createMessageHandler, debug, disable, dump, enable, ensureDelegateInitialized, error, error, getFullClassPath, getMessageHandler, getMessageHolder, info, initializeCache, isEnabled, setActiveProtectionDomain, setMessageHandler, warn, warn, weaveClass, weaveClass
-
Konstruktordetails
-
ClassLoaderWeavingAdaptor
public ClassLoaderWeavingAdaptor() -
ClassLoaderWeavingAdaptor
@Deprecated public ClassLoaderWeavingAdaptor(ClassLoader deprecatedLoader, IWeavingContext deprecatedContext) Veraltet.We don't need a reference to the class loader and using it during construction can cause problems with recursion. It also makes sense to supply the weaving context during initialization to.
-
-
Methodendetails
-
initialize
-
lint
-
getContextId
- Angegeben von:
getContextId
in SchnittstelleIMessageContext
- Setzt außer Kraft:
getContextId
in KlasseWeavingAdaptor
-
accept
Determine whether a type should be accepted for weaving, by checking it against any includes/excludes.- Setzt außer Kraft:
accept
in KlasseWeavingAdaptor
- Parameter:
className
- the name of the type to possibly acceptbytes
- the bytecode for the type (in case we need to look inside, eg. annotations)- Gibt zurück:
- true if it should be accepted for weaving
-
shouldDump
- Setzt außer Kraft:
shouldDump
in KlasseWeavingAdaptor
-
getDumpDir
- Setzt außer Kraft:
getDumpDir
in KlasseWeavingAdaptor
- Gibt zurück:
- the directory in which to dump - default is _ajdump but it
-
getNamespace
- Gibt zurück:
- Returns the key.
-
generatedClassesExistFor
Check to see if any classes are stored in the generated classes cache. Then flush the cache if it is not empty- Parameter:
className
- TODO- Gibt zurück:
- true if a class has been generated and is stored in the cache
-
flushGeneratedClasses
public void flushGeneratedClasses()Flush the generated classes cache -
flushGeneratedClassesFor
Remove generated classes based on the supplied className. This will remove any entries related to this name - so the class itself plus and inner classes.- Parameter:
className
- a slashed classname (e.g. com/foo/Bar)
-