com.atlassian.jira.jql.operand
Class DefaultJqlFunctionHandlerRegistry

java.lang.Object
  extended by com.atlassian.jira.jql.operand.DefaultJqlFunctionHandlerRegistry
All Implemented Interfaces:
JqlFunctionHandlerRegistry

@InjectableComponent
public class DefaultJqlFunctionHandlerRegistry
extends Object
implements JqlFunctionHandlerRegistry

Since:
v4.0

Constructor Summary
DefaultJqlFunctionHandlerRegistry()
           
 
Method Summary
 List<String> getAllFunctionNames()
          Fetches all function names ordered alphabetically.
 FunctionOperandHandler getOperandHandler(FunctionOperand operand)
          Fetches the associated OperandHandler for the provided FunctionOperand.
 void registerFunctionHandler(JqlFunction jqlFunction)
          Registers a JqlFunction plugin once it has been enabled by the system.
 void unregisterFunctionHandler(JqlFunction jqlFunction)
          Unregisters a JqlFunction plugin.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultJqlFunctionHandlerRegistry

public DefaultJqlFunctionHandlerRegistry()
Method Detail

registerFunctionHandler

public void registerFunctionHandler(JqlFunction jqlFunction)
Description copied from interface: JqlFunctionHandlerRegistry
Registers a JqlFunction plugin once it has been enabled by the system.

Specified by:
registerFunctionHandler in interface JqlFunctionHandlerRegistry
Parameters:
jqlFunction - the actual function to register.

unregisterFunctionHandler

public void unregisterFunctionHandler(JqlFunction jqlFunction)
Description copied from interface: JqlFunctionHandlerRegistry
Unregisters a JqlFunction plugin.

Specified by:
unregisterFunctionHandler in interface JqlFunctionHandlerRegistry
Parameters:
jqlFunction - the actual function to unregister.

getOperandHandler

public FunctionOperandHandler getOperandHandler(FunctionOperand operand)
Description copied from interface: JqlFunctionHandlerRegistry
Fetches the associated OperandHandler for the provided FunctionOperand. The returned handler is looked up by the name of the FunctionOperand (case insensitive).

Specified by:
getOperandHandler in interface JqlFunctionHandlerRegistry
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.

getAllFunctionNames

public List<String> getAllFunctionNames()
Description copied from interface: JqlFunctionHandlerRegistry
Fetches all function names ordered alphabetically.

Specified by:
getAllFunctionNames in interface JqlFunctionHandlerRegistry
Returns:
all function names ordered alphabetically, an empty collection if there are none.


Copyright © 2002-2009 Atlassian. All Rights Reserved.