Class ClassPathChangedEvent
java.lang.Object
java.util.EventObject
org.springframework.context.ApplicationEvent
org.springframework.boot.devtools.classpath.ClassPathChangedEvent
- All Implemented Interfaces:
Serializable
ApplicationEvent
containing details of a classpath change.- Since:
- 1.3.0
- Author:
- Phillip Webb
- See Also:
-
ClassPathFileChangeListener
- Serialized Form
-
Field Summary
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
ConstructorDescriptionClassPathChangedEvent
(Object source, Set<ChangedFiles> changeSet, boolean restartRequired) Create a newClassPathChangedEvent
. -
Method Summary
Methods inherited from class org.springframework.context.ApplicationEvent
getTimestamp
Methods inherited from class java.util.EventObject
getSource
-
Constructor Details
-
ClassPathChangedEvent
Create a newClassPathChangedEvent
.- Parameters:
source
- the source of the eventchangeSet
- the changed filesrestartRequired
- if a restart is required due to the change
-
-
Method Details
-
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
-
toString
- Overrides:
toString
in classEventObject
-
overview
Return an overview of the changes that triggered this event.- Returns:
- an overview of the changes
- Since:
- 2.6.11
-