wt.templateutil.processor
Class FormTaskDelegateFactory

java.lang.Object
  extended bywt.templateutil.processor.FormTaskDelegateFactory
All Implemented Interfaces:
ApplicationContextChild

public class FormTaskDelegateFactory
extends Object
implements 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


Field Summary
private  ApplicationContext applicationContext
          Deprecated.  
private static String CLASSNAME
          Deprecated.  
private static String RESOURCE
          Deprecated.  
private static boolean VERBOSE
          Deprecated.  
 
Fields inherited from interface wt.services.applicationcontext.ApplicationContextChild
APPLICATION_CONTEXT
 
Constructor Summary
FormTaskDelegateFactory()
          Deprecated.  
 
Method Summary
 ApplicationContextServices getApplContextServices()
          Deprecated.  
 ApplicationContext getApplicationContext()
          Deprecated.  
 FormTaskDelegate getFormTaskDelegate(Object contextObject, String action)
          Deprecated.  
 void setApplicationContext(ApplicationContext a_ApplicationContext)
          Deprecated.  
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RESOURCE

private static final String RESOURCE
Deprecated. 
See Also:
Constant Field Values

CLASSNAME

private static final String CLASSNAME
Deprecated. 

applicationContext

private ApplicationContext applicationContext
Deprecated. 

VERBOSE

private static boolean VERBOSE
Deprecated. 
Constructor Detail

FormTaskDelegateFactory

public FormTaskDelegateFactory()
                        throws UnableToLoadServiceProperties
Deprecated.  



Supported API: true

Throws:
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

getApplicationContext

public ApplicationContext getApplicationContext()
Deprecated.  

Gets the object for the association that plays role: applicationContext.

Supported API: false

Specified by:
getApplicationContext in interface ApplicationContextChild
Returns:
ApplicationContext

setApplicationContext

public void setApplicationContext(ApplicationContext a_ApplicationContext)
                           throws WTPropertyVetoException
Deprecated.  

Sets the object for the association that plays role: applicationContext.

Supported API: false

Specified by:
setApplicationContext in interface ApplicationContextChild
Parameters:
a_ApplicationContext -
Throws:
WTPropertyVetoException

getApplContextServices

public ApplicationContextServices getApplContextServices()
Deprecated.