Class PlasticClassLoader
java.lang.Object
java.lang.ClassLoader
org.apache.tapestry5.internal.plastic.PlasticClassLoader
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionClass<?>
defineClassWithBytecode
(String className, byte[] bytecode) protected Class<?>
void
setAlternativeClassloading
(Function<String, Class<?>> alternateClassloading) When alternatingClassloader is set, this classloader delegates to it the call to ClassLoader.loadClass(String).void
When a filter is set, only classes accepted by it will be loaded by this classloader.void
toString()
Methods inherited from class java.lang.ClassLoader
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findClass, findClass, findLibrary, findLoadedClass, findResource, findResource, findResources, findSystemClass, getClassLoadingLock, getDefinedPackage, getDefinedPackages, getName, getPackage, getPackages, getParent, getPlatformClassLoader, getResource, getResourceAsStream, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, getUnnamedModule, isRegisteredAsParallelCapable, loadClass, registerAsParallelCapable, resolveClass, resources, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners
-
Constructor Details
-
PlasticClassLoader
-
-
Method Details
-
loadClass
- Overrides:
loadClass
in classClassLoader
- Throws:
ClassNotFoundException
-
defineClassWithBytecode
-
setAlternativeClassloading
When alternatingClassloader is set, this classloader delegates to it the call to ClassLoader.loadClass(String). If it returns a non-null object, it's returned byloadClass(String)
. Otherwise, it returnssuper.loadClass(name)
.- Since:
- 5.8.3
-
setTag
- Since:
- 5.8.3
-
setFilter
When a filter is set, only classes accepted by it will be loaded by this classloader. Instead, it will be delegated to alternate classloading first and the parent classloader in case the alternate doesn't handle it.- Since:
- 5.8.3
-
toString
-
getClassLoaderId
-