org.apache.turbine.services.rundata
Interface RunDataService
- All Superinterfaces:
- Initable, Service
- All Known Implementing Classes:
- TurbineRunDataService
- public interface RunDataService
- extends Service
The RunData Service provides the implementations for RunData and
related interfaces required by request processing. It supports
different configurations of implementations, which can be selected
by specifying a configuration key. It may use pooling, in which case
the implementations should implement the Recyclable interface.
- Version:
- $Id: RunDataService.java,v 1.1.1.1 2001/08/16 05:09:13 jvanzyl Exp $
- Author:
- Ilkka Priha
Field Summary |
static java.lang.String |
DEFAULT_CONFIG
The default configuration key. |
static java.lang.String |
SERVICE_NAME
The key under which this service is stored in TurbineServices. |
Method Summary |
RunData |
getRunData(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res,
javax.servlet.ServletConfig config)
Gets a default RunData object. |
RunData |
getRunData(java.lang.String key,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res,
javax.servlet.ServletConfig config)
Gets a RunData object from a specific configuration. |
boolean |
putRunData(RunData data)
Puts the used RunData object back to the factory for recycling. |
SERVICE_NAME
public static final java.lang.String SERVICE_NAME
- The key under which this service is stored in TurbineServices.
DEFAULT_CONFIG
public static final java.lang.String DEFAULT_CONFIG
- The default configuration key.
getRunData
public RunData getRunData(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res,
javax.servlet.ServletConfig config)
throws TurbineException
- Gets a default RunData object.
- Parameters:
req
- a servlet request.res
- a servlet response.config
- a servlet config.- Returns:
- a new or recycled RunData object.
- Throws:
TurbineException
- if the operation fails.
getRunData
public RunData getRunData(java.lang.String key,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res,
javax.servlet.ServletConfig config)
throws TurbineException
- Gets a RunData object from a specific configuration.
- Parameters:
key
- a configuration key.req
- a servlet request.res
- a servlet response.config
- a servlet config.- Returns:
- a new or recycled RunData object.
- Throws:
TurbineException
- if the operation fails.
putRunData
public boolean putRunData(RunData data)
- Puts the used RunData object back to the factory for recycling.
- Parameters:
data
- the used RunData object.- Returns:
- true, if pooling is supported and the object was accepted.
Copyright © 2000-2002 Apache Software Foundation. All Rights Reserved.