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
    • 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 © 2016 Pivotal Software, Inc.. All rights reserved.