public class NuxeoDevWebappClassLoader extends NuxeoWebappClassLoader implements MutableClassLoader, 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, canonicalLoaderDir, delegate, files, hasExternalRepositories, j2seClassLoader, jarFiles, jarNames, jarPath, jarRealFiles, lastJarAccessed, lastModifiedDates, loaderDir, loaderPC, needConvert, notFoundResources, packageTriggers, parent, paths, permissionList, repositories, repositoryURLs, resourceEntries, resources, searchExternalFirst, securityManager, sm, started, system, triggers
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 |
addURL(URL url) |
void |
clear() |
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) |
void |
setParentClassLoader(ClassLoader pcl) |
addLifecycleListener, addPermission, addPermission, addPermission, addRepository, addTransformer, clearReferences, closeJARs, copyWithoutTransformers, deleteDir, destroy, doDefineClass, filter, findClass, findClassInternal, findLifecycleListeners, findLoadedClass0, findLoadedResource, findRepositories, findResource, findResourceInternal, findResourceInternal, findResources, getAntiJARLocking, getClearReferencesHttpClientKeepAliveThread, getClearReferencesLogFactoryRelease, getClearReferencesStatic, getClearReferencesStopThreads, getClearReferencesStopTimerThreads, getContextName, getDelegate, getJarPath, getJavaseClassLoader, getPermissions, getResources, getSearchExternalFirst, getState, getStateName, getURI, getURL, getURLs, init, isPackageSealed, isStarted, loadClass, modified, openJARs, refreshPolicy, removeLifecycleListener, removeTransformer, setAntiJARLocking, setClearReferencesHttpClientKeepAliveThread, setClearReferencesLogFactoryRelease, setClearReferencesStatic, setClearReferencesStopThreads, setClearReferencesStopTimerThreads, setDelegate, setJarPath, setJavaseClassLoader, setResources, setSearchExternalFirst, setWorkDir, start, stop, toString, validate, validateJarFile
close, definePackage, newInstance, newInstance
defineClass, defineClass
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findLibrary, findLoadedClass, findSystemClass, getClassLoadingLock, 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 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.WebappClassLoader
ClassNotFoundException
public URL getResource(String name)
getResource
in class org.apache.catalina.loader.WebappClassLoader
public InputStream getResourceAsStream(String name)
getResourceAsStream
in class org.apache.catalina.loader.WebappClassLoader
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 void setParentClassLoader(ClassLoader pcl)
setParentClassLoader
in class NuxeoWebappClassLoader
public ClassLoader getParentClassLoader()
getParentClassLoader
in class NuxeoWebappClassLoader
public ClassLoader getClassLoader()
getClassLoader
in interface MutableClassLoader
getClassLoader
in class NuxeoWebappClassLoader
Copyright © 2016 Nuxeo SA. All rights reserved.