@Module public class EnhancingClassLoader extends EnvironmentClassLoader
DynamicClassLoaders can be chained creating one virtual class loader. From the perspective of the JDK, it's all one classloader. Internally, the class loader chain searches like a classpath.
Constructor and Description |
---|
EnhancingClassLoader()
Creates a new environment class loader.
|
EnhancingClassLoader(java.lang.ClassLoader parent)
Creates a new environment class loader.
|
Modifier and Type | Method and Description |
---|---|
Path |
getPostWorkPath()
Gets the work path.
|
Path |
getPreWorkPath()
Gets the work path.
|
Path |
getWorkPath()
Gets the work path.
|
void |
init()
Initialize the loader.
|
void |
setWorkPath(Path workPath)
Sets the work path.
|
java.lang.String |
toString() |
addListener, addLoaderListener, addScanListener, addScanPackage, addScanRoot, addURL, applyVisibleModules, buildImportClassPath, configureEnhancerEvent, configurePostEnhancerEvent, create, create, create, create, createArtifactManager, destroy, findImportClass, getAdmin, getArtifactManager, getAttribute, getConfigException, getEnvironmentListeners, getHash, getImportResource, getLoaderListeners, getOwner, getResource, getResourceAlias, getResourceAsStream, initEnvironment, isActive, putIfAbsent, putResourceAlias, removeAttribute, removeListener, scan, setAttribute, setConfigException, setOwner, start, stop, validate
addCodeBasePath, addDependency, addJar, addJarManifestClassPath, addListener, addLoader, addLoader, addManifestClassPath, addNative, addParentPriorityPackage, addParentPriorityPackages, addPathClass, addPermission, addPermission, addPermissions, addPriorityPackage, addRoot, addTransformer, addURL, addURL, appendToClassPathForInstrumentation, buildClassPath, buildResourcePathSpecificFirst, buildSourcePath, clearModified, containsURL, containsURL, definePackage, findClass, findClassImpl, findLibrary, findPath, findResources, getClassEntry, getClassPath, getDependencyCheckInterval, getGlobalDependencyCheckInterval, getHash, getHashCrc, getId, getInstrumentableClassLoader, getListeners, getLoaders, getLocalClassPath, getNewTempClassLoader, getPermissions, getPermissions, getResourcePathSpecificFirst, getResources, getSourcePath, getThrowawayClassLoader, getTransformerList, getURLs, isDestroyed, isDirectoryLoader, isDisableURLs, isJarCacheEnabled, isJarCacheEnabledDefault, isModified, isModified, isModified, isModifiedNow, isRoot, loadClass, loadClass, loadClass, loadClassEntry, loadClassImpl, logModified, make, removeListener, removeLoader, replace, resetDependencyCheckInterval, sendAddLoaderEvent, setDependencyCheckInterval, setDisableURLs, setEnableDependencyCheck, setGlobalDependencyCheckInterval, setId, setJarCacheEnabled, setOldLoader, setServletHack, toClassPath, updateScan
close, definePackage, findResource, newInstance, newInstance
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, findLoadedClass, findSystemClass, getClassLoadingLock, getPackage, getPackages, getParent, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, registerAsParallelCapable, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners
public EnhancingClassLoader()
public EnhancingClassLoader(java.lang.ClassLoader parent)
public Path getWorkPath()
public void setWorkPath(Path workPath)
public final Path getPreWorkPath()
public final Path getPostWorkPath()
public void init()
init
in class EnvironmentClassLoader
public java.lang.String toString()
toString
in class EnvironmentClassLoader