public class

PluginsAwareJqlFunctionHandlerRegistry

extends Object
implements Startable JqlFunctionHandlerRegistry
java.lang.Object
   ↳ com.atlassian.jira.jql.operand.registry.PluginsAwareJqlFunctionHandlerRegistry

Class Overview

Represents a JqlFunctionHandlerRegistry that can detect when the plugins system enables / disables new jql function modules and updates the registry of function operand handlers accordingly.

The current implementation is backed by a LazyResettableJqlFunctionHandlerRegistry.

Summary

Public Constructors
PluginsAwareJqlFunctionHandlerRegistry(PluginAccessor pluginAccessor, EventPublisher eventPublisher, ModuleDescriptors.Orderings moduleDescriptorOrderings, I18nHelper i18nHelper)
Public Methods
List<String> getAllFunctionNames()
Fetches all function names ordered alphabetically.
FunctionOperandHandler getOperandHandler(FunctionOperand operand)
Fetches the associated OperandHandler for the provided FunctionOperand.
void onPluginModuleDisabled(PluginModuleDisabledEvent event)
void onPluginModuleEnabled(PluginModuleEnabledEvent event)
void start()
This method will be called after the plugin system is fully initialised and all components added to the dependency injection framework.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.jira.extension.Startable
From interface com.atlassian.jira.jql.operand.registry.JqlFunctionHandlerRegistry

Public Constructors

public PluginsAwareJqlFunctionHandlerRegistry (PluginAccessor pluginAccessor, EventPublisher eventPublisher, ModuleDescriptors.Orderings moduleDescriptorOrderings, I18nHelper i18nHelper)

Public Methods

public List<String> getAllFunctionNames ()

Fetches all function names ordered alphabetically.

Returns
  • all function names ordered alphabetically, an empty collection if there are none.

public FunctionOperandHandler getOperandHandler (FunctionOperand operand)

Fetches the associated OperandHandler for the provided FunctionOperand. The returned handler is looked up by the name of the FunctionOperand (case insensitive).

Parameters
operand that defines the name for which we want to find the operand handler.
Returns
  • the operand handler associated with this operand, null if there is none.

public void onPluginModuleDisabled (PluginModuleDisabledEvent event)

public void onPluginModuleEnabled (PluginModuleEnabledEvent event)

public void start ()

This method will be called after the plugin system is fully initialised and all components added to the dependency injection framework.

Throws
Exception