Class ScmEvent

java.lang.Object
java.util.EventObject
com.atlassian.bitbucket.scm.event.ScmEvent
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
ScmStatusChangedEvent

public abstract class ScmEvent extends EventObject
Common base for all events raised by SCM implementations.
See Also:
  • Constructor Details

    • ScmEvent

      public ScmEvent(@Nonnull Object source, @Nonnull Scm scm)
      Constructs a new ScmEvent, initialising the event's source and setting the Scm from which the event is being raised.
      Parameters:
      source - the component within the SCM raising the event
      scm - the SCM raising the event
      Throws:
      NullPointerException - if source or scm is null
  • Method Details

    • getScm

      @Nonnull public Scm getScm()
      Retrieves the Scm raising the event.

      Note: This may not match the getSource() value, which could be a component within the SCM rather than the Scm itself.

      Returns:
      the SCM