org.springframework.boot.context.embedded.tomcat

Class TomcatEmbeddedWebappClassLoader

  • All Implemented Interfaces:
    Closeable, AutoCloseable, org.apache.catalina.Lifecycle, org.apache.juli.WebappProperties, org.apache.tomcat.InstrumentableClassLoader, org.apache.tomcat.util.security.PermissionCheck


    public class TomcatEmbeddedWebappClassLoader
    extends org.apache.catalina.loader.WebappClassLoader
    Extension of Tomcat's 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).
    Author:
    Phillip Webb
    • Nested Class Summary

      • Nested classes/interfaces inherited from class org.apache.catalina.loader.WebappClassLoaderBase

        org.apache.catalina.loader.WebappClassLoaderBase.PrivilegedFindClassByName, org.apache.catalina.loader.WebappClassLoaderBase.PrivilegedGetClassLoader
      • Nested classes/interfaces inherited from interface org.apache.catalina.Lifecycle

        org.apache.catalina.Lifecycle.SingleUse
    • Field Summary

      • Fields inherited from class org.apache.catalina.loader.WebappClassLoaderBase

        allPermission, delegate, loaderPC, parent, permissionList, resourceEntries, resources, securityManager, sm
      • Fields inherited from interface org.apache.catalina.Lifecycle

        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 Detail

      • TomcatEmbeddedWebappClassLoader

        public TomcatEmbeddedWebappClassLoader()
      • TomcatEmbeddedWebappClassLoader

        public TomcatEmbeddedWebappClassLoader(ClassLoader parent)
    • Method Detail

      • addURL

        protected void addURL(URL url)
        Overrides:
        addURL in class org.apache.catalina.loader.WebappClassLoaderBase

Copyright © 2019 Pivotal Software, Inc.. All rights reserved.