wt.templateutil.processor
Class FormTaskDelegateFactory

java.lang.Object
  extended by wt.templateutil.processor.FormTaskDelegateFactory
All Implemented Interfaces:
wt.services.applicationcontext.ApplicationContextChild

Deprecated.

public class FormTaskDelegateFactory
extends Object
implements wt.services.applicationcontext.ApplicationContextChild

Deprecation Notice: This class is still valid for this release, however this serves as advance notice that it will be removed in the future. All user interfaces built using the Windchill HTML Template Processing client architecture will be rewritten using a different framework in an upcoming release. Factory that is based on the ApplicationContextServices service. It uses a context String and a Context Class to decide what FormTaskDelegate subclass to use. The context String and the Context Class relate to an entry in service.properties(or another properties file with the same syntax) in the following way :

wt.services/svc/default/wt.templateutil.processor.FormTaskDelegate///0=/duplicate

A concrete example of such an entry is wt.services/svc/default/wt.templateutil.processor.FormTaskDelegate/AddEff/wt.change2.ChangeActivityIfc/0=wt.eff.ChangeActivityAddEffTaskDelegate/duplicate

Supported API: true

Extendable: false


Constructor Summary
FormTaskDelegateFactory()
          Deprecated.  
 
Method Summary
 FormTaskDelegate getFormTaskDelegate(Object contextObject, String action)
          Deprecated.  
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FormTaskDelegateFactory

public FormTaskDelegateFactory()
                        throws wt.services.applicationcontext.implementation.UnableToLoadServiceProperties
Deprecated. 



Supported API: true

Throws:
wt.services.applicationcontext.implementation.UnableToLoadServiceProperties
Method Detail

getFormTaskDelegate

public FormTaskDelegate getFormTaskDelegate(Object contextObject,
                                            String action)
                                     throws WTException,
                                            WTPropertyVetoException
Deprecated. 

Returns the desired FormTaskDelegate subclass based on the Context String specified in the action parameter and the class specified in the contextObject parameter.

The contextObject is handled based on whether the object passed in is a String or not. If the contextObject is a String, it is assumed that the String is a fully qualified class path to an existing class and this class is used as the Context Class. Otherwise, the class of contextObject is used as the Context Class.

Supported API: true

Parameters:
contextObject -
action -
Returns:
FormTaskDelegate
Throws:
WTException
WTPropertyVetoException