com.caucho.loader.enhancer
Class EnhancingClassLoader

java.lang.Object
  extended by java.lang.ClassLoader
      extended by java.security.SecureClassLoader
          extended by java.net.URLClassLoader
              extended by com.caucho.loader.DynamicClassLoader
                  extended by com.caucho.loader.EnvironmentClassLoader
                      extended by com.caucho.loader.enhancer.EnhancingClassLoader
All Implemented Interfaces:
Make, DynamicClassLoaderMXBean, Dependency

@Module
public class EnhancingClassLoader
extends EnvironmentClassLoader

Class loader which checks for changes in class files and automatically picks up new jars.

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 Summary
EnhancingClassLoader()
          Creates a new environment class loader.
EnhancingClassLoader(java.lang.ClassLoader parent)
          Creates a new environment class loader.
 
Method Summary
 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()
           
 
Methods inherited from class com.caucho.loader.EnvironmentClassLoader
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
 
Methods inherited from class com.caucho.loader.DynamicClassLoader
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, isJarCacheEnabled, isJarCacheEnabledDefault, isModified, isModified, isModified, isModifiedNow, loadClass, loadClass, loadClass, loadClassEntry, loadClassImpl, logModified, make, removeListener, removeLoader, replace, resetDependencyCheckInterval, sendAddLoaderEvent, setDependencyCheckInterval, setEnableDependencyCheck, setGlobalDependencyCheckInterval, setId, setJarCacheEnabled, setOldLoader, setServletHack, toClassPath
 
Methods inherited from class java.net.URLClassLoader
definePackage, findResource, newInstance, newInstance
 
Methods inherited from class java.security.SecureClassLoader
defineClass, defineClass
 
Methods inherited from class java.lang.ClassLoader
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, findLoadedClass, findSystemClass, getPackage, getPackages, getParent, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EnhancingClassLoader

public EnhancingClassLoader()
Creates a new environment class loader.


EnhancingClassLoader

public EnhancingClassLoader(java.lang.ClassLoader parent)
Creates a new environment class loader.

Method Detail

getWorkPath

public Path getWorkPath()
Gets the work path.


setWorkPath

public void setWorkPath(Path workPath)
Sets the work path.


getPreWorkPath

public final Path getPreWorkPath()
Gets the work path.


getPostWorkPath

public final Path getPostWorkPath()
Gets the work path.


init

public void init()
Initialize the loader.

Overrides:
init in class EnvironmentClassLoader

toString

public java.lang.String toString()
Overrides:
toString in class EnvironmentClassLoader