public class ApplicationEnvironmentPreparedEvent extends SpringApplicationEvent
SpringApplication
is starting up and the
Environment
is first available for inspection and modification.source
Constructor and Description |
---|
ApplicationEnvironmentPreparedEvent(SpringApplication application,
String[] args,
ConfigurableEnvironment environment)
Create a new
ApplicationEnvironmentPreparedEvent instance. |
Modifier and Type | Method and Description |
---|---|
ConfigurableEnvironment |
getEnvironment()
Return the environment.
|
getArgs, getSpringApplication
getTimestamp
getSource, toString
public ApplicationEnvironmentPreparedEvent(SpringApplication application, String[] args, ConfigurableEnvironment environment)
ApplicationEnvironmentPreparedEvent
instance.application
- the current applicationargs
- the arguments the application is running withenvironment
- the environment that was just createdpublic ConfigurableEnvironment getEnvironment()
Copyright © 2021 Pivotal Software, Inc.. All rights reserved.