org.apache.tapestry.enhance
Class InjectStateFlagWorker

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

public class InjectStateFlagWorker
extends Object
implements InjectEnhancementWorker

Injects a boolean property that indicates if a particular application state object already exists. This is useful in situations where you are trying to prevent the creation of the ASO (and thus, prevent the creation of the HttpSession).

Since:
4.0
Author:
Howard M. Lewis Ship

Constructor Summary
InjectStateFlagWorker()
           
 
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

InjectStateFlagWorker

public InjectStateFlagWorker()
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.