public class NuxeoDevWebappClassLoader extends NuxeoWebappClassLoader implements DevMutableClassLoader, WebResourcesCacheFlusher
Modifier and Type | Class and Description |
---|---|
protected static class |
NuxeoDevWebappClassLoader.CompoundEnumeration<E> |
Modifier and Type | Field and Description |
---|---|
protected LocalClassLoader[] |
_children |
protected DevFrameworkBootstrap |
bootstrap |
protected List<LocalClassLoader> |
children |
allPermission, delegate, loaderPC, parent, permissionList, resourceEntries, resources, securityManager, sm
AFTER_DESTROY_EVENT, AFTER_INIT_EVENT, AFTER_START_EVENT, AFTER_STOP_EVENT, BEFORE_DESTROY_EVENT, BEFORE_INIT_EVENT, BEFORE_START_EVENT, BEFORE_STOP_EVENT, CONFIGURE_START_EVENT, CONFIGURE_STOP_EVENT, PERIODIC_EVENT, START_EVENT, STOP_EVENT
Constructor and Description |
---|
NuxeoDevWebappClassLoader() |
NuxeoDevWebappClassLoader(ClassLoader parent) |
Modifier and Type | Method and Description |
---|---|
void |
addChildren(LocalClassLoader loader) |
void |
addClassLoader(URL... urls)
Adds a new class loader to this one containing the reference to input urls.
|
void |
addURL(URL url) |
void |
clear() |
void |
clearPreviousClassLoader()
Clears the stack containing the previous class loader injected during hot reload.
|
LocalClassLoader |
createLocalClassLoader(URL... urls) |
void |
flushWebResources() |
DevFrameworkBootstrap |
getBootstrap() |
LocalClassLoader[] |
getChildren() |
ClassLoader |
getClassLoader() |
ClassLoader |
getParentClassLoader() |
URL |
getResource(String name) |
InputStream |
getResourceAsStream(String name) |
Enumeration<URL> |
getResources(String name) |
Class<?> |
loadClass(String name,
boolean resolve)
Do not synchronize this method at method level to avoid deadlocks.
|
void |
removeChildren(ClassLoader loader) |
void |
setBootstrap(DevFrameworkBootstrap bootstrap) |
copyWithoutTransformers, getClassLoadingLock
addLifecycleListener, addTransformer, check, checkStateForClassLoading, checkStateForResourceLoading, clearReferences, copyStateWithoutTransformers, destroy, doDefineClass, filter, filter, findClass, findClassInternal, findLifecycleListeners, findLoadedClass0, findResource, findResources, getClearReferencesHttpClientKeepAliveThread, getClearReferencesLogFactoryRelease, getClearReferencesRmiTargets, getClearReferencesStopThreads, getClearReferencesStopTimerThreads, getContextName, getDelegate, getHostName, getJavaseClassLoader, getPermissions, getResources, getServiceName, getState, getStateName, getURLs, getWebappName, hasLoggingConfig, init, isPackageSealed, loadClass, modified, refreshPolicy, removeLifecycleListener, removeTransformer, setClearReferencesHttpClientKeepAliveThread, setClearReferencesLogFactoryRelease, setClearReferencesRmiTargets, setClearReferencesStopThreads, setClearReferencesStopTimerThreads, setDelegate, setJavaseClassLoader, setResources, start, stop, toString
close, definePackage, newInstance, newInstance
defineClass, defineClass
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findLibrary, findLoadedClass, findSystemClass, getPackage, getPackages, getParent, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, registerAsParallelCapable, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
loadClass
protected DevFrameworkBootstrap bootstrap
protected List<LocalClassLoader> children
protected volatile LocalClassLoader[] _children
public NuxeoDevWebappClassLoader()
public NuxeoDevWebappClassLoader(ClassLoader parent)
public void clearPreviousClassLoader()
DevMutableClassLoader
clearPreviousClassLoader
in interface DevMutableClassLoader
public void addClassLoader(URL... urls)
DevMutableClassLoader
addClassLoader
in interface DevMutableClassLoader
public LocalClassLoader createLocalClassLoader(URL... urls)
public void setBootstrap(DevFrameworkBootstrap bootstrap)
public DevFrameworkBootstrap getBootstrap()
public void addChildren(LocalClassLoader loader)
public void removeChildren(ClassLoader loader)
public void clear()
public void flushWebResources()
flushWebResources
in interface WebResourcesCacheFlusher
public LocalClassLoader[] getChildren()
public Class<?> loadClass(String name, boolean resolve) throws ClassNotFoundException
loadClass
in class org.apache.catalina.loader.WebappClassLoaderBase
ClassNotFoundException
public URL getResource(String name)
getResource
in class org.apache.catalina.loader.WebappClassLoaderBase
public InputStream getResourceAsStream(String name)
getResourceAsStream
in class org.apache.catalina.loader.WebappClassLoaderBase
public Enumeration<URL> getResources(String name) throws IOException
getResources
in class ClassLoader
IOException
public void addURL(URL url)
addURL
in interface MutableClassLoader
addURL
in class NuxeoWebappClassLoader
public ClassLoader getParentClassLoader()
getParentClassLoader
in class NuxeoWebappClassLoader
public ClassLoader getClassLoader()
getClassLoader
in interface MutableClassLoader
getClassLoader
in class NuxeoWebappClassLoader
Copyright © 2018 Nuxeo. All rights reserved.