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 ApplicationEvent
ApplicationEvent containing details of a classpath change.
Since:
1.3.0
Author:
Phillip Webb
See Also:
  • Constructor Details

    • ClassPathChangedEvent

      public ClassPathChangedEvent(Object source, Set<ChangedFiles> changeSet, boolean restartRequired)
      Create a new ClassPathChangedEvent.
      Parameters:
      source - the source of the event
      changeSet - the changed files
      restartRequired - if a restart is required due to the change
  • Method Details

    • 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
    • toString

      public String toString()
      Overrides:
      toString in class EventObject
    • overview

      public String overview()
      Return an overview of the changes that triggered this event.
      Returns:
      an overview of the changes
      Since:
      2.6.11