com.raritantechnologies.eCommerceAdmin
Class CachingECommerceRenderer

java.lang.Object
  extended bycom.raritantechnologies.eCommerceAdmin.CachingECommerceRenderer
All Implemented Interfaces:
IConfigurable, ICustomTag, IECommerceRenderer

public class CachingECommerceRenderer
extends java.lang.Object
implements IECommerceRenderer

Caches the work of an IECommerceRenderer. Uses a BodyCache instance to contain the current output of its nested IECommerceRenderer. If there is has been no change to the output since the last rendering operation, the cached version is used.

XML Configuration Template:
  <ECommerceRenderer name="ItemSearch" 
        rendererClass="com.raritantechnologies.eCommerceAdmin.CachingECommerceRenderer" >

    <!-- Nested "proxy" Renderer -->
    <ECommerceRenderer rendererClass="[ class of com.raritantechnologies.eCommerceAdmin.IECommerceRenderer ]" >

      <!-- The stuff that the IECommerceRenderer needs ... -->

    </ECommerceRenderer>
  </ECommerceRenderer>
 


Developed by Raritan Technologies Inc..

Author:
Ted Sullivan

Constructor Summary
CachingECommerceRenderer()
           
 
Method Summary
 java.lang.String getBody(RaritanPageContext rpc)
          Returns the tag body.
 java.util.ArrayList getRequestParameters()
           
 void initialize(org.w3c.dom.Element elem)
          Initializes the object from an XML tag or element.
 void initialize(java.util.Map initParams)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CachingECommerceRenderer

public CachingECommerceRenderer()
Method Detail

initialize

public void initialize(org.w3c.dom.Element elem)
Description copied from interface: IConfigurable
Initializes the object from an XML tag or element. This method is called by the Framework as part of the application initializtion. see ConfigurationManager, XMLConfigurationManager, XMLSearchFieldMapFactory, XMLSearchSourceFactory. Configurable objects that are owned or contained by other configurable objects will be initialized in by the parent object.

Specified by:
initialize in interface IECommerceRenderer

initialize

public void initialize(java.util.Map initParams)
Specified by:
initialize in interface ICustomTag

getBody

public java.lang.String getBody(RaritanPageContext rpc)
Description copied from interface: ICustomTag
Returns the tag body.

Specified by:
getBody in interface IECommerceRenderer

getRequestParameters

public java.util.ArrayList getRequestParameters()
Specified by:
getRequestParameters in interface IECommerceRenderer