|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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. ProcessorService defines the interface that a "state" based service to a TemplateProcessor subclass should implement. A implementor of this interface will be able accept the HTTPState object of the current TemplateProcessor and perform some service with access to the current "state" as represented in in the HTTPState object.
In many cases there is a some common service that is required by several TemplateProcessors. One could place the code in the common parent of the TemplateProcessors to make the code available to all of the TemplateProcessors or place redundent code in all of the TemplateProcessors.
Neither of these is desirable. The better solution is to create an implementor of this interface an have the implementor of this interface perform the service. This implements a more correct Object Orient code solution.
Here is how to access your new Service and a specific method in your new service Assume that the class, wt.util.MyTemplateService, is an implementor of the ProcessorService and that the method displayHelpIcon has the correct signature for a Windchill script call, namely,
public void displayHelpIcon(Properties parameters, Locale locale, OutputStream
os)
Use the following winchill Script call to invoke this method
useProcessorService service=wt.util.MyTemplateService method=displayHelpIcon
Implementors of this interface MUST be modeled and be code generated.
If they are not, then the required methods and default implementations
will not be present.
Supported API: true
Extendable: true
Field Summary | |
static String |
STATE
Deprecated. |
Fields inherited from interface wt.templateutil.processor.ContextHolder |
CONTEXT_ACTION, CONTEXT_CLASS_NAME, CONTEXT_OBJ, CONTEXT_PROPERTIES, FORM_DATA, QUERY_DATA, RESPONSE_EXCEPTIONS, RESPONSE_FOOTERS, RESPONSE_HEADERS, RESPONSE_MESSAGES, RESPONSE_STRING, STATUS |
Method Summary | |
HTTPState |
getState()
Deprecated. |
void |
setState(HTTPState a_State)
Deprecated. |
Field Detail |
public static final String STATE
Method Detail |
public HTTPState getState()
public void setState(HTTPState a_State)
a_State
-
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |