org.springframework.boot.context.embedded

Class RegistrationBean

    • Constructor Detail

      • RegistrationBean

        public RegistrationBean()
    • Method Detail

      • setName

        public void setName(String name)
        Set the name of this registration. If not specified the bean name will be used.
      • setAsyncSupported

        public void setAsyncSupported(boolean asyncSupported)
        Sets if asynchronous operations are support for this registration. If not specified defaults to true.
      • isAsyncSupported

        public boolean isAsyncSupported()
        Returns if asynchronous operations are support for this registration.
      • setEnabled

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

        public boolean isEnabled()
        Returns:
        the enabled flag (default true)
      • getInitParameters

        public Map<String,String> getInitParameters()
        Returns a mutable Map of the registration init-parameters.
      • addInitParameter

        public void addInitParameter(String name,
                            String value)
        Add a single init-parameter, replacing any existing parameter with the same name.
        Parameters:
        name - the init-parameter name
        value - the init-parameter value
      • getOrDeduceName

        protected final String getOrDeduceName(Object value)
        Deduces the name for this registration. Will return user specified name or fallback to convention based naming.
        Parameters:
        value - the object used for convention based names
      • configure

        protected void configure(javax.servlet.Registration.Dynamic registration)
        Configure registration base settings.
      • setOrder

        public void setOrder(int order)
        Parameters:
        order - the order to set
      • getOrder

        public int getOrder()
        Specified by:
        getOrder in interface org.springframework.core.Ordered
        Returns:
        the order

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