类 RegistrationBean

    • 字段概要

      • 从接口继承的字段 org.springframework.core.Ordered

        HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
    • 方法详细资料

      • onStartup

        public final void onStartup​(javax.servlet.ServletContext servletContext)
                             throws javax.servlet.ServletException
        从接口复制的说明: ServletContextInitializer
        Configure the given ServletContext with any servlets, filters, listeners context-params and attributes necessary for initialization.
        指定者:
        onStartup 在接口中 ServletContextInitializer
        参数:
        servletContext - the ServletContext to initialize
        抛出:
        javax.servlet.ServletException - if any call against the given ServletContext throws a ServletException
      • getDescription

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

        protected abstract void register​(String description,
                                         javax.servlet.ServletContext servletContext)
        Register this bean with the servlet context.
        参数:
        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.
        参数:
        enabled - the enabled to set
      • isEnabled

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

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

        public int getOrder()
        Get the order of the registration bean.
        指定者:
        getOrder 在接口中 org.springframework.core.Ordered
        返回:
        the order