org.apache.tapestry.enhance
Class InjectStateWorker

java.lang.Object
  extended by org.apache.tapestry.enhance.InjectStateWorker
All Implemented Interfaces:
InjectEnhancementWorker

public class InjectStateWorker
extends Object
implements InjectEnhancementWorker

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, InjectSpecification spec)
          Perform the enhancement defined by the InjectSpecification.
 void setApplicationStateManager(ApplicationStateManager applicationStateManager)
           
 
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,
                               InjectSpecification spec)
Description copied from interface: InjectEnhancementWorker
Perform the enhancement defined by the InjectSpecification. Thrown runtime exceptions are caught and reported by the invoker.

Specified by:
performEnhancement in interface InjectEnhancementWorker
Parameters:
op - Current enhancement context.
spec - The injection specificiation configuration.

setApplicationStateManager

public void setApplicationStateManager(ApplicationStateManager applicationStateManager)


Copyright © 2006-2008 Apache Software Foundation. All Rights Reserved.