org.springframework.boot.web.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.ParallelWebappClassLoader
    Extension of Tomcat's ParallelWebappClassLoader that does not consider the system classloader. This is required to ensure that any custom context class loader is always used (as is the case with some executable archives).
    Since:
    2.0.0
    Author:
    Phillip Webb, Andy Clement
    • Constructor Detail

      • TomcatEmbeddedWebappClassLoader

        public TomcatEmbeddedWebappClassLoader()
      • TomcatEmbeddedWebappClassLoader

        public TomcatEmbeddedWebappClassLoader(ClassLoader parent)
    • Method Detail

      • findResource

        public URL findResource(String name)
        Overrides:
        findResource in class org.apache.catalina.loader.WebappClassLoaderBase
      • addURL

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

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