org.alltimeflashdreamer.filelister
Class PoolHandler

java.lang.Object
  extended byorg.alltimeflashdreamer.filelister.PoolHandler

public final class PoolHandler
extends Object

Title: PoolHandler

Description: This simple class provides the (static) access to a single instance of ConnectionPool.

Organization: All Time Flash Dreamer

Version:
0.5.1
Author:
Copyright (c) 2002-2004 by Florian Steinsiepe

Method Summary
static org.alltimeflashdreamer.util.jdbc.ConnectionPool getPool()
          Returns the pool (if first call, it's initialized first which may throw a "embedded" FileListerException).
(package private) static void initializePool(PropertyFileParameters params)
          Initializes the connection pool according to the settings stored in the given PropertyFileParameters instance, i.e. the property file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getPool

public static org.alltimeflashdreamer.util.jdbc.ConnectionPool getPool()
                                                                throws FileListerException
Returns the pool (if first call, it's initialized first which may throw a "embedded" FileListerException).

Returns:
the ConnectionPool instance to use
Throws:
FileListerException - if the pool is null / not yet initialized

initializePool

static void initializePool(PropertyFileParameters params)
                    throws FileListerException
Initializes the connection pool according to the settings stored in the given PropertyFileParameters instance, i.e. the property file.

Parameters:
params - where to get the settings from
Throws:
FileListerException - wrapped ClassNotFoundException or SQLException, in case something went wrong