com.ptc.windchill.esi.rnd
Class ESIRendererFactory

java.lang.Object
  extended bycom.ptc.windchill.esi.rnd.ESIRendererFactory
All Implemented Interfaces:
ApplicationContextChild, Serializable

public class ESIRendererFactory
extends Object
implements ApplicationContextChild, Serializable

This is the factory for createing ESIRenderers.

Supported API: false

Extendable: false

See Also:
Serialized Form

Field Summary
private  ApplicationContext applicationContext
           
private static String CLASSNAME
           
private static HashMap hash
           
private static ESIRendererFactory manager
           
private static String RESOURCE
           
 
Fields inherited from interface wt.services.applicationcontext.ApplicationContextChild
APPLICATION_CONTEXT
 
Constructor Summary
protected ESIRendererFactory()
          

Supported API: false
 
Method Summary
private static ESIRenderer findRenderer(Object key)
           
 ApplicationContextServices getApplContextServices()
           
 ApplicationContext getApplicationContext()
          Gets the object for the association that plays role: applicationContext.
static ESIRendererFactory getInstance()
          

Supported API: false
private  Class getObjectClass(String ufid)
          Parse the given ufid string to return object class .
 ESIRenderer getRenderer(Class requestor, String selector)
          

Supported API: false
 ESIRenderer getRenderer(Persistable anObject)
          

Supported API: false
 ESIRenderer getRenderer(Persistable anObject, String selector)
          

Supported API: false
 ESIRenderer getRenderer(String ufid)
          

Supported API: false
 ESIRenderer getRenderer(String ufid, String selector)
          

Supported API: false
private static void putRenderer(Object key, ESIRenderer renderer)
           
 void setApplicationContext(ApplicationContext a_ApplicationContext)
          Sets the object for the association that plays role: applicationContext.
 
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
See Also:
Constant Field Values

CLASSNAME

private static final String CLASSNAME

manager

private static ESIRendererFactory manager

applicationContext

private ApplicationContext applicationContext

hash

private static HashMap hash
Constructor Detail

ESIRendererFactory

protected ESIRendererFactory()


Supported API: false

Method Detail

getRenderer

public ESIRenderer getRenderer(Persistable anObject)


Supported API: false

Parameters:
anObject -
Returns:
ESIRenderer

getRenderer

public ESIRenderer getRenderer(String ufid)


Supported API: false

Parameters:
ufid -
Returns:
ESIRenderer

getRenderer

public ESIRenderer getRenderer(String ufid,
                               String selector)


Supported API: false

Parameters:
ufid -
selector - The logic name for ESI uses , which is defined in ESIConst and exposed to external via DataResponse, such as ECNHeader
Returns:
ESIRenderer

getRenderer

public ESIRenderer getRenderer(Persistable anObject,
                               String selector)


Supported API: false

Parameters:
anObject -
selector - The logic name for ESI uses , which is defined in ESIConst and exposed to external via DataResponse, such as ECNHeader
Returns:
ESIRenderer

getRenderer

public ESIRenderer getRenderer(Class requestor,
                               String selector)


Supported API: false

Parameters:
requestor -
selector -
Returns:
ESIRenderer

getInstance

public static ESIRendererFactory getInstance()


Supported API: false

Returns:
ESIRendererFactory

getApplicationContext

public ApplicationContext getApplicationContext()
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
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()

getObjectClass

private Class getObjectClass(String ufid)
Parse the given ufid string to return object class .

Parameters:
ufid - The String format is , eg. "OR:wt.change2.WTChangeOrder2:23736:278962895-1075147107373-28286616-146-8-253-132@jchi03d.ptcnet.ptc.com"

putRenderer

private static void putRenderer(Object key,
                                ESIRenderer renderer)

findRenderer

private static ESIRenderer findRenderer(Object key)