public abstract class

ScmEvent

extends EventObject
java.lang.Object
   ↳ java.util.EventObject
     ↳ com.atlassian.bitbucket.scm.event.ScmEvent
Known Direct Subclasses

Class Overview

Common base for all events raised by SCM implementations.

Summary

[Expand]
Inherited Fields
From class java.util.EventObject
Public Constructors
ScmEvent(Object source, Scm scm)
Constructs a new ScmEvent, initialising the event's source and setting the Scm from which the event is being raised.
Public Methods
@Nonnull Scm getScm()
Retrieves the Scm raising the event.
[Expand]
Inherited Methods
From class java.util.EventObject
From class java.lang.Object

Public Constructors

public ScmEvent (Object source, 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

Public Methods

@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