Class ContextRefreshedWithApplicationEvent

java.lang.Object
java.util.EventObject
org.springframework.context.ApplicationEvent
org.springframework.boot.context.event.SpringApplicationEvent
org.springframework.cloud.context.config.ContextRefreshedWithApplicationEvent
All Implemented Interfaces:
Serializable

public class ContextRefreshedWithApplicationEvent extends org.springframework.boot.context.event.SpringApplicationEvent
A custom event for spring cloud context use cases that need the saved Spring Application. This prevents a duplicated ApplicationPreparedEvent from being republished.
See Also:
  • Constructor Details

    • ContextRefreshedWithApplicationEvent

      public ContextRefreshedWithApplicationEvent(org.springframework.boot.SpringApplication application, String[] args, org.springframework.context.ConfigurableApplicationContext context)
      Parameters:
      application - the current application
      args - the arguments the application is running with
      context - the ApplicationContext about to be refreshed
  • Method Details

    • getApplicationContext

      public org.springframework.context.ConfigurableApplicationContext getApplicationContext()
      Return the application context.
      Returns:
      the context