类 ApplicationEnvironmentPreparedEvent
java.lang.Object
java.util.EventObject
org.springframework.context.ApplicationEvent
org.springframework.boot.context.event.SpringApplicationEvent
org.springframework.boot.context.event.ApplicationEnvironmentPreparedEvent
- 所有已实现的接口:
Serializable
Event published when a
SpringApplication
is starting up and the
Environment
is first available for inspection and modification.- 从以下版本开始:
- 1.0.0
- 作者:
- Dave Syer
- 另请参阅:
-
字段概要
从类继承的字段 java.util.EventObject
source
-
构造器概要
构造器构造器说明ApplicationEnvironmentPreparedEvent
(ConfigurableBootstrapContext bootstrapContext, SpringApplication application, String[] args, ConfigurableEnvironment environment) Create a newApplicationEnvironmentPreparedEvent
instance. -
方法概要
修饰符和类型方法说明Return the bootstrap context.Return the environment.从类继承的方法 org.springframework.boot.context.event.SpringApplicationEvent
getArgs, getSpringApplication
从类继承的方法 org.springframework.context.ApplicationEvent
getTimestamp
从类继承的方法 java.util.EventObject
getSource, toString
-
构造器详细资料
-
ApplicationEnvironmentPreparedEvent
public ApplicationEnvironmentPreparedEvent(ConfigurableBootstrapContext bootstrapContext, SpringApplication application, String[] args, ConfigurableEnvironment environment) Create a newApplicationEnvironmentPreparedEvent
instance.- 参数:
bootstrapContext
- the bootstrap contextapplication
- the current applicationargs
- the arguments the application is running withenvironment
- the environment that was just created
-
-
方法详细资料
-
getBootstrapContext
Return the bootstrap context.- 返回:
- the bootstrap context
- 从以下版本开始:
- 2.4.0
-
getEnvironment
Return the environment.- 返回:
- the environment
-