Package com.atlassian.jira.mock.event
Class MockListener
java.lang.Object
com.atlassian.jira.mock.event.MockListener
- All Implemented Interfaces:
JiraListener,EventListener
- Direct Known Subclasses:
MockIssueEventListener
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionString[]Returns the parameters used by this listener.Returns a textual description of the listener.voidInitialises the listener with the given parameters.booleanIndicates whether this listener is internal, meaning it cannot be removed by an administrator.booleanisUnique()Indicates whether JIRA should only create one instance of this listener.
-
Constructor Details
-
MockListener
public MockListener()
-
-
Method Details
-
init
Description copied from interface:JiraListenerInitialises the listener with the given parameters.- Specified by:
initin interfaceJiraListener- Parameters:
params- the initialisation parameters given in the Listener Properties
-
getAcceptedParams
Description copied from interface:JiraListenerReturns the parameters used by this listener.- Specified by:
getAcceptedParamsin interfaceJiraListener- Returns:
- a non-null array (can be empty)
-
isInternal
public boolean isInternal()Description copied from interface:JiraListenerIndicates whether this listener is internal, meaning it cannot be removed by an administrator.- Specified by:
isInternalin interfaceJiraListener- Returns:
trueif this is an Atlassian listener, otherwisefalse
-
isUnique
public boolean isUnique()Description copied from interface:JiraListenerIndicates whether JIRA should only create one instance of this listener. For example, having multiple mail listeners would be fine if you wanted multiple mails sent out. For other listeners, such as cache listeners, it makes no sense to have multiple instances.- Specified by:
isUniquein interfaceJiraListener- Returns:
- whether this listener should be a singleton
-
getDescription
Description copied from interface:JiraListenerReturns a textual description of the listener. You can include HTML if required, but do not use tables or DHTML, as the description may be displayed inside tables or frames.A good description will describe what this listener does and explain the parameters required for configuring it.
- Specified by:
getDescriptionin interfaceJiraListener- Returns:
- a description of the listener, or null if no description is appropriate
-
getParam
-