org.springframework.boot.web.servlet

Class RegistrationBean

    • Constructor Detail

      • RegistrationBean

        public RegistrationBean()
    • Method Detail

      • getDescription

        protected abstract String getDescription()
        Return a description of the registration. For example "Servlet resourceServlet"
        Returns:
        a description of the registration
      • register

        protected abstract void register(String description,
                                         ServletContext servletContext)
        Register this bean with the servlet context.
        Parameters:
        description - a description of the item being registered
        servletContext - the servlet context
      • setEnabled

        public void setEnabled(boolean enabled)
        Flag to indicate that the registration is enabled.
        Parameters:
        enabled - the enabled to set
      • isEnabled

        public boolean isEnabled()
        Return if the registration is enabled.
        Returns:
        if enabled (default true)
      • setOrder

        public void setOrder(int order)
        Set the order of the registration bean.
        Parameters:
        order - the order
      • getOrder

        public int getOrder()
        Get the order of the registration bean.
        Specified by:
        getOrder in interface Ordered
        Returns:
        the order