类 ApplicationEnvironmentPreparedEvent
- java.lang.Object
- java.util.EventObject
- org.springframework.context.ApplicationEvent
- org.springframework.boot.context.event.SpringApplicationEvent
- org.springframework.boot.context.event.ApplicationEnvironmentPreparedEvent
- 所有已实现的接口:
Serializable
public class ApplicationEnvironmentPreparedEvent extends SpringApplicationEvent
Event published when aSpringApplication
is starting up and theEnvironment
is first available for inspection and modification.- 另请参阅:
- 序列化表格
字段概要
从类继承的字段 java.util.EventObject
source
构造器概要
构造器 构造器 说明 ApplicationEnvironmentPreparedEvent(SpringApplication application, String[] args, org.springframework.core.env.ConfigurableEnvironment environment)
Create a newApplicationEnvironmentPreparedEvent
instance.
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 org.springframework.core.env.ConfigurableEnvironment
getEnvironment()
Return the environment.从类继承的方法 org.springframework.boot.context.event.SpringApplicationEvent
getArgs, getSpringApplication
从类继承的方法 java.util.EventObject
getSource, toString
构造器详细资料
ApplicationEnvironmentPreparedEvent
public ApplicationEnvironmentPreparedEvent(SpringApplication application, String[] args, org.springframework.core.env.ConfigurableEnvironment environment)
Create a newApplicationEnvironmentPreparedEvent
instance.- 参数:
application
- the current applicationargs
- the arguments the application is running withenvironment
- the environment that was just created
方法详细资料
getEnvironment
public org.springframework.core.env.ConfigurableEnvironment getEnvironment()
Return the environment.- 返回:
- the environment