|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.armatiek.infofuze.pool.SourcePool
public class SourcePool
A pool implementation for objects that implement the interface DataSourceIf
| Method Summary | |
|---|---|
static void |
destroy()
Closes all the pooled DataSourceIf objects and destroys the pool |
DataSourceIf |
getSource(java.lang.String name)
Returns the DataSourceIf object with specified name from the pool. |
static SourcePool |
getSourcePool()
Returns the singleton SourcePool object. |
static void |
init(org.w3c.dom.Document configDocument)
Initializes the pool using the source objects defined in the configuration file (infofuze-config.xml) |
void |
returnSource(DataSourceIf source)
Returns specified DataSourceIf 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 SourcePool getSourcePool()
throws InfofuzeException
InfofuzeException
public DataSourceIf getSource(java.lang.String name)
throws java.lang.Exception
name - The name of a source object as configured in infofuze-config.xml
java.lang.Exceptionpublic void returnSource(DataSourceIf source)
source - The DataSourceIf to return to the pool
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||