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,
org.springframework.core.env.ConfigurableEnvironment environment)
Create a new
ApplicationEnvironmentPreparedEvent instance. |
Modifier and Type | Method and Description |
---|---|
org.springframework.core.env.ConfigurableEnvironment |
getEnvironment()
Return the environment.
|
getArgs, getSpringApplication
getSource, toString
public ApplicationEnvironmentPreparedEvent(SpringApplication application, String[] args, org.springframework.core.env.ConfigurableEnvironment environment)
ApplicationEnvironmentPreparedEvent
instance.application
- the current applicationargs
- the arguments the application is running withenvironment
- the environment that was just createdCopyright © 2017 Pivotal Software, Inc.. All rights reserved.