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 java.lang.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(java.lang.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(java.lang.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 java.lang.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:
java.lang.Exception - Allows implementations to throw an Exception.

registerTypeResolver

public void registerTypeResolver(java.lang.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(java.lang.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-2010 Atlassian. All Rights Reserved.