Package org.apache.turbine.services.pull
Interface RunDataApplicationTool
-
public interface RunDataApplicationTool
Tools in the Toolbox that need a Rundata Object on every refresh should implement this interface.- Version:
- $Id$
- Author:
- Henning P. Schmiedehausen
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
init(Object data)
Initialize the application tool.void
refresh(RunData data)
Refresh the application tool.
-
-
-
Method Detail
-
init
void init(Object data)
Initialize the application tool. The data parameter holds a different type depending on how the tool is being instantiated:- For global tools data will be null
- For request tools data will be of type RunData
- For session and authorized tools data will be of type User
It is possible that session scope tools will be initialized with a null
User
object. This happens when the first request on a session happens to the be login action. The next request on the session will cause the session tool to be refreshed iftools.per.request.refresh
is set totrue
inTurbineResources.properties
. You will then be able to get aUser
object from the instance ofRunData
.- Parameters:
data
- initialization data
-
-