com.atlassian.jira.workflow
Class DefaultOSWorkflowConfigurator

java.lang.Object
  extended by com.atlassian.jira.workflow.DefaultOSWorkflowConfigurator
All Implemented Interfaces:
Startable, OSWorkflowConfigurator

public class DefaultOSWorkflowConfigurator
extends Object
implements Startable, OSWorkflowConfigurator

Provides a way for JIRA to configure OSWorkflow to lookup condition, validator, and post-function classes by setting the TypeResolver.

Since:
3.13

Constructor Summary
DefaultOSWorkflowConfigurator()
           
 
Method Summary
 void registerTypeResolver(String className, com.opensymphony.workflow.TypeResolver typeResolver)
          Registers a TypeResolver for the given class.
 void start()
          This method wil be called after the plugin system is fully initialised and all components added to the dependency injection framework.
 void unregisterTypeResolver(String className, com.opensymphony.workflow.TypeResolver typeResolver)
          Unregisters a TypeResolver from the given class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultOSWorkflowConfigurator

public DefaultOSWorkflowConfigurator()
Method Detail

start

public void start()
           throws Exception
Description copied from interface: Startable
This method wil be called after the plugin system is fully initialised and all components added to the dependency injection framework.

Specified by:
start in interface Startable
Throws:
Exception - Allows implementations to throw an Exception.

registerTypeResolver

public void registerTypeResolver(String className,
                                 com.opensymphony.workflow.TypeResolver typeResolver)
Description copied from interface: OSWorkflowConfigurator
Registers a TypeResolver for the given class. The last registered resolver against the class name will take effect.

Specified by:
registerTypeResolver in interface OSWorkflowConfigurator
Parameters:
className - the class name.
typeResolver - the resolver to register; should not be null.

unregisterTypeResolver

public void unregisterTypeResolver(String className,
                                   com.opensymphony.workflow.TypeResolver typeResolver)
Description copied from interface: OSWorkflowConfigurator
Unregisters a TypeResolver from the given class. This class will no longer be mapped to any resolvers.

Specified by:
unregisterTypeResolver in interface OSWorkflowConfigurator
Parameters:
className - the class name.
typeResolver - the resolver to unregister; should not be null.


Copyright © 2002-2012 Atlassian. All Rights Reserved.