wt.federation.admin
Class FederationAdminTemplateFactory

java.lang.Object
  extended bywt.federation.admin.FederationAdminTemplateFactory
All Implemented Interfaces:
ApplicationContextChild

public class FederationAdminTemplateFactory
extends Object
implements ApplicationContextChild

This class serves as an HTML template file factory for the Federation Administrator template processors. It is intended to be used only via those template processors.
In order to add a new HTML template file so that the factory is aware of it, put the file into the codebase/template/FederationAdmin directory and add an entry to the service.properties file for the "FederationAdminTemplate" service. Here is an example entry:

wt.services/rsc/default/FederationAdminTemplate/null/wt.federation.FederatedDirectoryService/0=DirectoryServices
This example tells the factory to use the DirectoryServices(.html) HTML template file for objects of the wt.federation.FederatedDirectoryService class.

Supported API: false

See Also:
FederationAdminProcessor

Field Summary
private  ApplicationContext applicationContext
           
private static String RESOURCE
           
private static boolean VERBOSE
           
 
Fields inherited from interface wt.services.applicationcontext.ApplicationContextChild
APPLICATION_CONTEXT
 
Constructor Summary
FederationAdminTemplateFactory()
          

Supported API: false
 
Method Summary
 ApplicationContext getApplicationContext()
          

Supported API: false Gets the object for the association that plays role: APPLICATION_CONTEXT.
 ApplicationContextServices getApplicationContextServices()
          

Supported API: false
protected  HTMLTemplate getHTMLTemplate(Object requestor, String selector)
          Factory method to return an instance of the TemplateProcessor for the object passed.
 void setApplicationContext(ApplicationContext a_ApplicationContext)
          

Supported API: false 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

VERBOSE

private static boolean VERBOSE

RESOURCE

private static final String RESOURCE
See Also:
Constant Field Values

applicationContext

private ApplicationContext applicationContext
Constructor Detail

FederationAdminTemplateFactory

public FederationAdminTemplateFactory()
                               throws UnableToLoadServiceProperties


Supported API: false

Throws:
UnableToLoadServiceProperties
Method Detail

getHTMLTemplate

protected HTMLTemplate getHTMLTemplate(Object requestor,
                                       String selector)
                                throws WTException
Factory method to return an instance of the TemplateProcessor for the object passed.

Supported API: false

Returns:
TemplateProcessor
Throws:
WTException
PropertyVetoException

getApplicationContext

public ApplicationContext getApplicationContext()


Supported API: false Gets the object for the association that plays role: APPLICATION_CONTEXT.

Specified by:
getApplicationContext in interface ApplicationContextChild
Returns:
ApplicationContext

setApplicationContext

public void setApplicationContext(ApplicationContext a_ApplicationContext)
                           throws WTPropertyVetoException


Supported API: false Sets the object for the association that plays role: APPLICATION_CONTEXT.

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

getApplicationContextServices

public ApplicationContextServices getApplicationContextServices()


Supported API: false