Package org.aspectj.weaver.loadtime
Class WeavingURLClassLoader
- java.lang.Object
-
- java.lang.ClassLoader
-
- java.security.SecureClassLoader
-
- java.net.URLClassLoader
-
- org.aspectj.weaver.bcel.ExtensibleURLClassLoader
-
- org.aspectj.weaver.loadtime.WeavingURLClassLoader
-
- All Implemented Interfaces:
Closeable,AutoCloseable,GeneratedClassHandler,WeavingClassLoader
public class WeavingURLClassLoader extends ExtensibleURLClassLoader implements WeavingClassLoader
-
-
Field Summary
Fields Modifier and Type Field Description static StringWEAVING_ASPECT_PATHstatic StringWEAVING_CLASS_PATH
-
Constructor Summary
Constructors Constructor Description WeavingURLClassLoader(ClassLoader parent)WeavingURLClassLoader(URL[] urls, ClassLoader parent)WeavingURLClassLoader(URL[] classURLs, URL[] aspectURLs, ClassLoader parent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidacceptClass(String name, byte[] classBytes, byte[] weavedBytes)protected voidaddURL(URL url)protected ClassdefineClass(String name, byte[] b, CodeSource cs)URL[]getAspectURLs()protected byte[]getBytes(String name)-
Methods inherited from class org.aspectj.weaver.bcel.ExtensibleURLClassLoader
close, findClass
-
Methods inherited from class java.net.URLClassLoader
definePackage, findResource, findResources, getPermissions, getResourceAsStream, getURLs, newInstance, newInstance
-
Methods inherited from class java.security.SecureClassLoader
defineClass, defineClass
-
Methods inherited from class java.lang.ClassLoader
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findClass, findLibrary, findLoadedClass, findResource, findSystemClass, getClassLoadingLock, getDefinedPackage, getDefinedPackages, getName, getPackage, getPackages, getParent, getPlatformClassLoader, getResource, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, getUnnamedModule, isRegisteredAsParallelCapable, loadClass, loadClass, registerAsParallelCapable, resolveClass, resources, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners
-
-
-
-
Field Detail
-
WEAVING_CLASS_PATH
public static final String WEAVING_CLASS_PATH
- See Also:
- Constant Field Values
-
WEAVING_ASPECT_PATH
public static final String WEAVING_ASPECT_PATH
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
WeavingURLClassLoader
public WeavingURLClassLoader(ClassLoader parent)
-
WeavingURLClassLoader
public WeavingURLClassLoader(URL[] urls, ClassLoader parent)
-
WeavingURLClassLoader
public WeavingURLClassLoader(URL[] classURLs, URL[] aspectURLs, ClassLoader parent)
-
-
Method Detail
-
addURL
protected void addURL(URL url)
- Overrides:
addURLin classExtensibleURLClassLoader
-
defineClass
protected Class defineClass(String name, byte[] b, CodeSource cs) throws IOException
- Overrides:
defineClassin classExtensibleURLClassLoader- Throws:
IOException
-
getBytes
protected byte[] getBytes(String name) throws IOException
- Overrides:
getBytesin classExtensibleURLClassLoader- Throws:
IOException
-
getAspectURLs
public URL[] getAspectURLs()
- Specified by:
getAspectURLsin interfaceWeavingClassLoader
-
acceptClass
public void acceptClass(String name, byte[] classBytes, byte[] weavedBytes)
- Specified by:
acceptClassin interfaceGeneratedClassHandler
-
-