Package org.apache.turbine.om
Class OMTool
java.lang.Object
org.apache.turbine.om.OMTool
- All Implemented Interfaces:
- org.apache.fulcrum.pool.Recyclable,- ApplicationTool
@Deprecated
public class OMTool
extends Object
implements ApplicationTool, org.apache.fulcrum.pool.Recyclable
Deprecated.
This class is probably not used anymore, it may have been intended for cacheable Torque OM or might be used with Fulcrum Security Torque.
A Pull tool to make om objects available to a template
- Version:
- $Id$
- Author:
- John D. McNally, Henning P. Schmiedehausen
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionprotected classDeprecated.Inner class to present a nice interface to the template designer
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected RetrieverFactoryDeprecated.The Factory responsible for retrieving the objects from storageprotected ConcurrentMap<String, Object> Deprecated.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoiddispose()Deprecated.Disposes the object after use.Deprecated.Get theOMTool.PullHelperobject with the given nameDeprecated.Get the object with the given name and keyvoidDeprecated.Prepares tool for a single requestbooleanDeprecated.Checks whether the recyclable has been disposed.voidrecycle()Deprecated.Recycles the object for a new client.voidrefresh()Deprecated.Implementation of ApplicationTool interface is not needed for this method as the tool is request scoped
- 
Field Details- 
omMapDeprecated.
- 
omFactoryDeprecated.The Factory responsible for retrieving the objects from storage
 
- 
- 
Constructor Details- 
OMToolDeprecated.Default constructor- Throws:
- Exception- if creating the factory fails
 
 
- 
- 
Method Details- 
initDeprecated.Prepares tool for a single request- Specified by:
- initin interface- ApplicationTool
- Parameters:
- data- the initialization data
 
- 
refreshDeprecated.Implementation of ApplicationTool interface is not needed for this method as the tool is request scoped- Specified by:
- refreshin interface- ApplicationTool
 
- 
getDeprecated.Get theOMTool.PullHelperobject with the given name- Parameters:
- omName- the object name
- Returns:
- the PullHelper
- Throws:
- Exception- if retrieving the object fails
 
- 
getDeprecated.Get the object with the given name and key- Parameters:
- omName- the object name
- key- the object key
- Returns:
- the object
- Throws:
- Exception- if retrieving the object fails
 
- 
recycleDeprecated.Recycles the object for a new client. Recycle methods with parameters must be added to implementing object and they will be automatically called by pool implementations when the object is taken from the pool for a new client. The parameters must correspond to the parameters of the constructors of the object. For new objects, constructors can call their corresponding recycle methods whenever applicable. The recycle methods must call their super.- Specified by:
- recyclein interface- org.apache.fulcrum.pool.Recyclable
 
- 
disposeDeprecated.Disposes the object after use. The method is called when the object is returned to its pool. The dispose method must call its super.- Specified by:
- disposein interface- org.apache.fulcrum.pool.Recyclable
 
- 
isDisposedDeprecated.Checks whether the recyclable has been disposed.- Specified by:
- isDisposedin interface- org.apache.fulcrum.pool.Recyclable
- Returns:
- true, if the recyclable is disposed.
 
 
-