Class ClassPathChangedEvent
- java.lang.Object
- java.util.EventObject
- org.springframework.context.ApplicationEvent
- org.springframework.boot.devtools.classpath.ClassPathChangedEvent
- All Implemented Interfaces:
Serializable
public class ClassPathChangedEvent extends org.springframework.context.ApplicationEvent
ApplicationEventcontaining details of a classpath change.- Since:
- 1.3.0
- See Also:
ClassPathFileChangeListener, Serialized Form
Field Summary
Fields inherited from class java.util.EventObject
source
Constructor Summary
Constructors Constructor Description ClassPathChangedEvent(Object source, Set<ChangedFiles> changeSet, boolean restartRequired)Create a newClassPathChangedEvent.
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<ChangedFiles>getChangeSet()Return details of the files that changed.booleanisRestartRequired()Return if an application restart is required due to the change.Methods inherited from class java.util.EventObject
getSource, toString
Constructor Detail
ClassPathChangedEvent
public ClassPathChangedEvent(Object source, Set<ChangedFiles> changeSet, boolean restartRequired)
Create a newClassPathChangedEvent.- Parameters:
source- the source of the eventchangeSet- the changed filesrestartRequired- if a restart is required due to the change
Method Detail
getChangeSet
public Set<ChangedFiles> getChangeSet()
Return details of the files that changed.- Returns:
- the changed files
isRestartRequired
public boolean isRestartRequired()
Return if an application restart is required due to the change.- Returns:
- if an application restart is required