Class BuildServerLifecycleProcessor

  • All Implemented Interfaces:
    EventListener, BuildServerStartupAction, BuildServerState, org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware, org.springframework.context.ApplicationListener<org.springframework.context.event.ContextClosedEvent>

    public class BuildServerLifecycleProcessor
    extends Object
    implements BuildServerState, BuildServerStartupAction, org.springframework.context.ApplicationListener<org.springframework.context.event.ContextClosedEvent>, org.springframework.context.ApplicationContextAware
    Created 09.05.13 14:25
    Author:
    Eugene Petrenko (eugene.petrenko@jetbrains.com)
    • Method Detail

      • isShuttingDown

        public boolean isShuttingDown()
        Description copied from interface: BuildServerState
        Returns true if server shutdown is in progress.
        Specified by:
        isShuttingDown in interface BuildServerState
        Returns:
        see above
      • setApplicationContext

        public void setApplicationContext​(org.springframework.context.ApplicationContext applicationContext)
                                   throws org.springframework.beans.BeansException
        Specified by:
        setApplicationContext in interface org.springframework.context.ApplicationContextAware
        Throws:
        org.springframework.beans.BeansException
      • onApplicationEvent

        public void onApplicationEvent​(@NotNull
                                       org.springframework.context.event.ContextClosedEvent event)
        Specified by:
        onApplicationEvent in interface org.springframework.context.ApplicationListener<org.springframework.context.event.ContextClosedEvent>
      • shutdown

        public void shutdown()
      • registerShutdownAction

        public void registerShutdownAction​(@NotNull
                                           Runnable action)
        It differs from ServerListener.serverShutdown() - this action is performed after serverShutdown event was processed by all listeners.
      • registerStartupAction

        public void registerStartupAction​(@NotNull
                                          Runnable action)
        It differs from ServerListener.serverStartup() - this action is performed before serverStartup event is raised.