Class BroadleafBootServletContextInitializer

java.lang.Object
org.springframework.boot.web.servlet.support.SpringBootServletInitializer
org.broadleafcommerce.common.web.boot.support.BroadleafBootServletContextInitializer
All Implemented Interfaces:
org.springframework.web.WebApplicationInitializer

public abstract class BroadleafBootServletContextInitializer extends org.springframework.boot.web.servlet.support.SpringBootServletInitializer
Used in conjunction with SpringBootBootstrappingServletContextListener. Since that class establishes its own delegate ContextLoaderListener that closes the Spring ApplicationContext we want to disable the fact that Spring Boot tries to add a ContextLoaderListener.

SPRING-UPGRADE-CHECK

Author:
Phillip Verheyden (phillipuniverse)
  • Field Summary

    Fields inherited from class org.springframework.boot.web.servlet.support.SpringBootServletInitializer

    logger
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onStartup(jakarta.servlet.ServletContext servletContext)
     

    Methods inherited from class org.springframework.boot.web.servlet.support.SpringBootServletInitializer

    configure, createRootApplicationContext, createSpringApplicationBuilder, deregisterJdbcDrivers, run, setRegisterErrorPageFilter

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • BroadleafBootServletContextInitializer

      public BroadleafBootServletContextInitializer()
  • Method Details

    • onStartup

      public void onStartup(jakarta.servlet.ServletContext servletContext) throws jakarta.servlet.ServletException
      Specified by:
      onStartup in interface org.springframework.web.WebApplicationInitializer
      Overrides:
      onStartup in class org.springframework.boot.web.servlet.support.SpringBootServletInitializer
      Throws:
      jakarta.servlet.ServletException