org.apache.tapestry.enhance
Class InjectStateWorker
java.lang.Object
org.apache.tapestry.enhance.InjectStateWorker
- All Implemented Interfaces:
- InjectEnhancementWorker
public class InjectStateWorker
- extends java.lang.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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
InjectStateWorker
public InjectStateWorker()
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
injectState
public void injectState(EnhancementOperation op,
java.lang.String objectName,
java.lang.String propertyName)
setApplicationStateManager
public void setApplicationStateManager(ApplicationStateManager applicationStateManager)