org.apache.tapestry
Interface IDirect

All Superinterfaces:
IComponent, IRender, org.apache.hivemind.Locatable, org.apache.hivemind.LocationHolder
All Known Implementing Classes:
DirectLink, Form

public interface IDirect
extends IComponent

Interface that defines classes that may be messaged by the direct service.

Author:
Howard Lewis Ship

Method Summary
 boolean isStateful()
          Invoked by the direct service to query the component as to whether it is stateful.
 void trigger(IRequestCycle cycle)
          Invoked by the direct service to have the component peform the appropriate action.
 
Methods inherited from interface org.apache.tapestry.IComponent
addAsset, addBody, addComponent, enterActiveState, finishLoad, getAsset, getAssets, getBeans, getBinding, getBindingNames, getBindings, getComponent, getComponents, getContainedComponent, getContainer, getExtendedId, getId, getIdPath, getListeners, getMessage, getMessages, getNamespace, getPage, getProperty, getSpecification, isRendering, renderBody, setBinding, setContainedComponent, setContainer, setId, setNamespace, setPage, setProperty
 
Methods inherited from interface org.apache.tapestry.IRender
render
 
Methods inherited from interface org.apache.hivemind.LocationHolder
setLocation
 
Methods inherited from interface org.apache.hivemind.Locatable
getLocation
 

Method Detail

trigger

public void trigger(IRequestCycle cycle)
Invoked by the direct service to have the component peform the appropriate action. The DirectLink component will notify its listener.


isStateful

public boolean isStateful()
Invoked by the direct service to query the component as to whether it is stateful. If stateful and no HttpSession is active, then a StaleSessionException is thrown by the service.

Since:
2.3