org.springframework.boot.context.web

Class ServletContextApplicationContextInitializer

  • java.lang.Object
    • org.springframework.boot.context.web.ServletContextApplicationContextInitializer
  • All Implemented Interfaces:
    org.springframework.context.ApplicationContextInitializer<org.springframework.web.context.ConfigurableWebApplicationContext>, org.springframework.core.Ordered


    public class ServletContextApplicationContextInitializer
    extends Object
    implements org.springframework.context.ApplicationContextInitializer<org.springframework.web.context.ConfigurableWebApplicationContext>, org.springframework.core.Ordered
    ApplicationContextInitializer for setting the servlet context.
    Author:
    Dave Syer
    • Constructor Detail

      • ServletContextApplicationContextInitializer

        public ServletContextApplicationContextInitializer(javax.servlet.ServletContext servletContext)
        Parameters:
        servletContext - the servlet that should be ultimately set.
    • Method Detail

      • setOrder

        public void setOrder(int order)
      • getOrder

        public int getOrder()
        Specified by:
        getOrder in interface org.springframework.core.Ordered
      • initialize

        public void initialize(org.springframework.web.context.ConfigurableWebApplicationContext applicationContext)
        Specified by:
        initialize in interface org.springframework.context.ApplicationContextInitializer<org.springframework.web.context.ConfigurableWebApplicationContext>

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