wt.enterprise
Class TemplateProcessorFactory

java.lang.Object
  extended bywt.enterprise.TemplateProcessorFactory
All Implemented Interfaces:
ApplicationContextChild

public class TemplateProcessorFactory
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. This class serves as a TemplateProcessor factory for the URLProcessor class. It is only intended for usage consistent with the way that URLProcessor uses it, and that is:
1) Getting a template processor instance back from the factory.
2) Calling the instance's handleRequest() method.
In order to add a new template processor so that the factory is aware of it, add an entry to the service.properties file for the "wt.enterprise.TemplateProcessor" service. Here is an example entry:

wt.services/svc/default/wt.enterprise.TemplateProcessor/ObjProps/java.lang.Object/0=wt.enterprise.ObjectPropertiesProcessor/duplicate
In the example "ObjProps" is the unique action that maps to the "wt.enterprise.ObjectPropertiesProcessor" template processor. When the getTemplateProcessor() method is called with the action argument set to "ObjProps", the "wt.enterprise.ObjectPropertiesProcessor" template processor will be instantiated.
The TemplateProcessorFactory is intended to be called via the URLProcessor.

Supported API: false

Supported API: true

Extendable: false

See Also:
URLProcessor

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
TemplateProcessorFactory()
          Deprecated.  
 
Method Summary
 ApplicationContext getApplicationContext()
          Deprecated.  
 ApplicationContextServices getApplicationContextServices()
          Deprecated.  
 TemplateProcessor getTemplateProcessor(String action, Object obj)
          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

TemplateProcessorFactory

public TemplateProcessorFactory()
                         throws UnableToLoadServiceProperties
Deprecated.  

The constructor sets the ApplicationContextServices used by this factory to locate and instantiate a TemplateProcessor subclass. Currently, a call to the ApplicationContextFactory is used to select the ApplicationContextServices.

Supported API: true

Throws:
UnableToLoadServiceProperties
Method Detail

getTemplateProcessor

public TemplateProcessor getTemplateProcessor(String action,
                                              Object obj)
                                       throws WTException
Deprecated.  

Factory method to return an instance of the TemplateProcessor for the object and the action passed in. If the object passed in is of type String, then it is assumed that the String contains the fully qualified class path of class. Then an Class object of that type is retrieved and used by the factory. Otherwise, the type of the object is used directly.

Supported API: true

Parameters:
action -
obj -
Returns:
TemplateProcessor
Throws:
WTException

getApplicationContextServices

public ApplicationContextServices getApplicationContextServices()
Deprecated.  



Supported API: true

Returns:
ApplicationContextServices

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