Interface ConfigurableLifecycle

All Superinterfaces:
org.springframework.context.Lifecycle, org.springframework.context.Phased, org.springframework.context.SmartLifecycle
All Known Subinterfaces:
CanUseSharedResource<T>, SharedResource<T>
All Known Implementing Classes:
AbstractConfigurableLifecyle, AbstractDatabaseMigrator, AbstractHttpSender, AbstractHttpSession, AdapterManager, Configuration, ConfigurationFlowGenerator, ConfiguringLifecycleProcessor, HttpSender, HttpSession, LiquibaseMigrator, MonitorManager, MultipartHttpSender, RestSender, ScheduleManager, WebServiceSender

public interface ConfigurableLifecycle extends org.springframework.context.SmartLifecycle
Interface for Spring beans that require their Lifecycle to be managed by Spring. See ConfiguringLifecycleProcessor
Author:
Niels
  • Field Summary

    Fields inherited from interface org.springframework.context.SmartLifecycle

    DEFAULT_PHASE
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Configure this component.
    default int
     
    default boolean
    By default these beans are not started.

    Methods inherited from interface org.springframework.context.Lifecycle

    isRunning, start, stop

    Methods inherited from interface org.springframework.context.SmartLifecycle

    stop
  • Method Details

    • configure

      void configure() throws ConfigurationException
      Configure this component.

      In the case of a container, this will propagate the start signal to all components that apply.

      Throws:
      ConfigurationException - in case it was not able to configure the component.
    • getPhase

      default int getPhase()
      Specified by:
      getPhase in interface org.springframework.context.Phased
      Specified by:
      getPhase in interface org.springframework.context.SmartLifecycle
    • isAutoStartup

      default boolean isAutoStartup()
      By default these beans are not started. The Configuration may do so in the Configuration.configure() method.
      Specified by:
      isAutoStartup in interface org.springframework.context.SmartLifecycle