类 ClassPathChangedEvent
- java.lang.Object
- java.util.EventObject
- org.springframework.context.ApplicationEvent
- org.springframework.boot.devtools.classpath.ClassPathChangedEvent
- 所有已实现的接口:
Serializable
public class ClassPathChangedEvent extends org.springframework.context.ApplicationEvent
ApplicationEvent
containing details of a classpath change.- 从以下版本开始:
- 1.3.0
- 另请参阅:
ClassPathFileChangeListener
, 序列化表格
字段概要
从类继承的字段 java.util.EventObject
source
构造器概要
构造器 构造器 说明 ClassPathChangedEvent(Object source, Set<ChangedFiles> changeSet, boolean restartRequired)
Create a newClassPathChangedEvent
.
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 Set<ChangedFiles>
getChangeSet()
Return details of the files that changed.boolean
isRestartRequired()
Return if an application restart is required due to the change.从类继承的方法 java.util.EventObject
getSource, toString
构造器详细资料
ClassPathChangedEvent
public ClassPathChangedEvent(Object source, Set<ChangedFiles> changeSet, boolean restartRequired)
Create a newClassPathChangedEvent
.- 参数:
source
- the source of the eventchangeSet
- the changed filesrestartRequired
- if a restart is required due to the change
方法详细资料
getChangeSet
public Set<ChangedFiles> getChangeSet()
Return details of the files that changed.- 返回:
- the changed files
isRestartRequired
public boolean isRestartRequired()
Return if an application restart is required due to the change.- 返回:
- if an application restart is required