org.apache.tapestry.enhance
Class InjectStateWorker

java.lang.Object
  extended byorg.apache.tapestry.enhance.InjectStateWorker
All Implemented Interfaces:
EnhancementWorker

public class InjectStateWorker
extends java.lang.Object
implements EnhancementWorker

Worker for injecting application state objects as properties of the component. These properties are read/write and must be "live" (changes are propogated back into the ApplicationStateManager). They should also cache in a local variable for efficiency, and clear out that variable at the end of the request.

Since:
4.0
Author:
Howard M. Lewis Ship

Constructor Summary
InjectStateWorker()
           
 
Method Summary
 void performEnhancement(EnhancementOperation op, IComponentSpecification spec)
           
 void setApplicationStateManager(ApplicationStateManager applicationStateManager)
           
 void setErrorLog(org.apache.hivemind.ErrorLog errorLog)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InjectStateWorker

public InjectStateWorker()
Method Detail

performEnhancement

public void performEnhancement(EnhancementOperation op,
                               IComponentSpecification spec)
Specified by:
performEnhancement in interface EnhancementWorker

setApplicationStateManager

public void setApplicationStateManager(ApplicationStateManager applicationStateManager)

setErrorLog

public void setErrorLog(org.apache.hivemind.ErrorLog errorLog)