org.springframework.boot.context.event

Class ApplicationEnvironmentPreparedEvent

  • All Implemented Interfaces:
    java.io.Serializable


    public class ApplicationEnvironmentPreparedEvent
    extends SpringApplicationEvent
    Event published when a SpringApplication is starting up and the Environment is first available for inspection and modification.
    Since:
    1.0.0
    See Also:
    Serialized Form
    • Field Summary

      • Fields inherited from class java.util.EventObject

        source
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      org.springframework.core.env.ConfigurableEnvironment getEnvironment()
      Return the environment.
      • Methods inherited from class org.springframework.context.ApplicationEvent

        getTimestamp
      • Methods inherited from class java.util.EventObject

        getSource, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • ApplicationEnvironmentPreparedEvent

        public ApplicationEnvironmentPreparedEvent(SpringApplication application,
                                                   java.lang.String[] args,
                                                   org.springframework.core.env.ConfigurableEnvironment environment)
        Parameters:
        application - the current application
        args - the arguments the application is running with
        environment - the environment that was just created
    • Method Detail

      • getEnvironment

        public org.springframework.core.env.ConfigurableEnvironment getEnvironment()
        Return the environment.
        Returns:
        the environment