@Deprecated public class OMTool extends Object implements ApplicationTool, org.apache.fulcrum.pool.Recyclable
| Modifier and Type | Class and Description |
|---|---|
protected class |
OMTool.PullHelper
Deprecated.
Inner class to present a nice interface to the template designer
|
| Modifier and Type | Field and Description |
|---|---|
protected RetrieverFactory |
omFactory
Deprecated.
The Factory responsible for retrieving the
objects from storage
|
protected ConcurrentMap<String,Object> |
omMap
Deprecated.
|
| Constructor and Description |
|---|
OMTool()
Deprecated.
Default constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
dispose()
Deprecated.
Disposes the object after use.
|
OMTool.PullHelper |
get(String omName)
Deprecated.
Get the
OMTool.PullHelper object with the given name |
Object |
get(String omName,
String key)
Deprecated.
Get the object with the given name and key
|
void |
init(Object data)
Deprecated.
Prepares tool for a single request
|
boolean |
isDisposed()
Deprecated.
Checks whether the recyclable has been disposed.
|
void |
recycle()
Deprecated.
Recycles the object for a new client.
|
void |
refresh()
Deprecated.
Implementation of ApplicationTool interface is not needed for this
method as the tool is request scoped
|
protected ConcurrentMap<String,Object> omMap
protected RetrieverFactory omFactory
public void init(Object data)
init in interface ApplicationTooldata - the initialization datapublic void refresh()
refresh in interface ApplicationToolpublic OMTool.PullHelper get(String omName) throws Exception
OMTool.PullHelper object with the given nameomName - the object nameException - if retrieving the object failspublic Object get(String omName, String key) throws Exception
omName - the object namekey - the object keyException - if retrieving the object failspublic void recycle()
recycle in interface org.apache.fulcrum.pool.Recyclablepublic void dispose()
dispose in interface org.apache.fulcrum.pool.Recyclablepublic boolean isDisposed()
isDisposed in interface org.apache.fulcrum.pool.RecyclableCopyright © 2000–2019 The Apache Software Foundation. All rights reserved.