|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.armatiek.infofuze.pool.ResultPool
public class ResultPool
A pool implementation for objects that implement the interface DataResultIf
| Method Summary | |
|---|---|
static void |
destroy()
Closes all the pooled DataResultIf objects and destroys the pool |
DataResultIf |
getResult(java.lang.String name)
Returns the DataResultIf object with specified name from the pool. |
static ResultPool |
getResultPool()
Returns The singleton ResultPool object. |
static void |
init(org.w3c.dom.Document configDocument)
Initializes the pool using the result objects defined in the configuration file (infofuze-config.xml) |
void |
returnResult(DataResultIf result)
Returns specified DataResultIf to the pool. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static void init(org.w3c.dom.Document configDocument)
configDocument - The configuration documentpublic static void destroy()
public static ResultPool getResultPool()
throws InfofuzeException
InfofuzeException
public DataResultIf getResult(java.lang.String name)
throws java.lang.Exception
name - The name of a result object as configured in infofuze-config.xml
java.lang.Exceptionpublic void returnResult(DataResultIf result)
result - The DataResultIf to return to the pool
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||