org.springframework.boot.context.embedded.tomcat

Class TomcatEmbeddedWebappClassLoader

  • All Implemented Interfaces:
    Closeable, AutoCloseable, org.apache.catalina.Lifecycle


    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.WebappClassLoader

        org.apache.catalina.loader.WebappClassLoader.PrivilegedFindResourceByName, org.apache.catalina.loader.WebappClassLoader.PrivilegedGetClassLoader
    • Field Summary

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

        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
      • 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.WebappClassLoader

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