public class TomcatEmbeddedWebappClassLoader extends WebappClassLoader
WebappClassLoader
that does not consider the
system classloader
. This is required to to
ensure that any custom context classloader is always used (as is the case with some
executable archives).WebappClassLoaderBase.PrivilegedFindClassByName, WebappClassLoaderBase.PrivilegedGetClassLoader
Lifecycle.SingleUse
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 |
---|
TomcatEmbeddedWebappClassLoader() |
TomcatEmbeddedWebappClassLoader(ClassLoader parent) |
Modifier and Type | Method and Description |
---|---|
protected void |
addURL(URL url) |
Class<?> |
loadClass(String name,
boolean resolve) |
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, getResource, getResourceAsStream, 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, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, registerAsParallelCapable, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners
public TomcatEmbeddedWebappClassLoader()
public TomcatEmbeddedWebappClassLoader(ClassLoader parent)
public Class<?> loadClass(String name, boolean resolve) throws ClassNotFoundException
loadClass
in class WebappClassLoaderBase
ClassNotFoundException
protected void addURL(URL url)
addURL
in class WebappClassLoaderBase
Copyright © 2017 Pivotal Software, Inc.. All rights reserved.