|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.enterprise.ChangeViewTemplateFactory
This class is a factory that creates the desired instance of an
HTMLTemplate for
ChangeViewProcessor
to process. This factory uses entries in service.properties
file under the Class specific templates section.
To add a new HTML template to be available to the ChangeViewProcessor, do the following steps
wt.clients.changeMgmt
directory and update the makefile
service.properties
http://<host>/<path>/wt.enterprise.URLProcessor/URLTemplateAction?action="key word"?oid=...
wt.enterprise.ChangeViewProcessor;
,
wt.htmlutil.HTMLTemplate;
,
wt.htmlutil.HtmlUtil;
,
wt.httpgw.GatewayURL;
Field Summary | |
private ApplicationContext |
applicationContext
|
private static String |
CLASSNAME
|
private static String |
RESOURCE
|
private static boolean |
VERBOSE
|
Fields inherited from interface wt.services.applicationcontext.ApplicationContextChild |
APPLICATION_CONTEXT |
Constructor Summary | |
ChangeViewTemplateFactory()
Supported API: false |
Method Summary | |
ApplicationContext |
getApplicationContext()
Gets the object for the association that plays role: APPLICATION_CONTEXT. |
ApplicationContextServices |
getApplicationContextServices()
Supported API: false |
protected HTMLTemplate |
getHTMLTemplate(Object requestor,
String templateFileResource)
Factory method to return an instance of the TemplateProcessor for the object passed. |
void |
setApplicationContext(ApplicationContext a_ApplicationContext)
Sets the object for the association that plays role: APPLICATION_CONTEXT. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static boolean VERBOSE
private static final String RESOURCE
private static final String CLASSNAME
private ApplicationContext applicationContext
Constructor Detail |
public ChangeViewTemplateFactory() throws UnableToLoadServiceProperties
UnableToLoadServiceProperties
Method Detail |
protected HTMLTemplate getHTMLTemplate(Object requestor, String templateFileResource) throws WTException
service.properties
. Otherwise, the value passed in call will be
used as the name of the template. A call to
TemplateName.getChangeMgmt
will use the String in templateFileResource to find the correct entry in
the directory codebase/templates/changeMgmt.
The templateFileResource is optional, and can be used to override
the value normally returned by the factory.
WTException
PropertyVetoException
public ApplicationContext getApplicationContext()
getApplicationContext
in interface ApplicationContextChild
public void setApplicationContext(ApplicationContext a_ApplicationContext) throws WTPropertyVetoException
setApplicationContext
in interface ApplicationContextChild
a_ApplicationContext
-
WTPropertyVetoException
public ApplicationContextServices getApplicationContextServices()
WTPropertyVetoException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |