org.osesb.objectpools
Class PooledValidationBeanAccessHelper

java.lang.Object
  extended by org.osesb.objectpools.PooledValidationBeanAccessHelper

public class PooledValidationBeanAccessHelper
extends java.lang.Object

This class encapsulates access to the configured Keyed Pool of ValidationBean(s), which is managed by ValidationBeanKeyedPoolFactory.

Since:
Version .9

Field Summary
protected static org.apache.commons.logging.Log log
          The logging implementation for this class.
protected static java.lang.String thisClassName
          The full name of this class.
 
Constructor Summary
PooledValidationBeanAccessHelper()
           
 
Method Summary
static java.lang.Object getPooledValidationBean(java.lang.String poolKey)
          Gets a pooled ValidationBean from configured keyed pool of ValidationBean(s).
static void main(java.lang.String[] args)
          Main method for testing and sandboxing.
static void returnPooledValidationBean(java.lang.String poolKey, java.lang.Object validationBean)
          Returns a ValidationBean object to the configured pool of ValidationBean(s).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

thisClassName

protected static java.lang.String thisClassName
The full name of this class.


log

protected static org.apache.commons.logging.Log log
The logging implementation for this class.

Constructor Detail

PooledValidationBeanAccessHelper

public PooledValidationBeanAccessHelper()
Method Detail

getPooledValidationBean

public static java.lang.Object getPooledValidationBean(java.lang.String poolKey)
                                                throws java.lang.Exception
Gets a pooled ValidationBean from configured keyed pool of ValidationBean(s).

Parameters:
poolKey - The key to the target ValidationBean in the heterogeneous pool of ValidationBean(s).
Returns:
a pooled ValidationBean.
Throws:
java.lang.Exception - if a ValidationBean cannot be obtained from the pool.

returnPooledValidationBean

public static void returnPooledValidationBean(java.lang.String poolKey,
                                              java.lang.Object validationBean)
Returns a ValidationBean object to the configured pool of ValidationBean(s).

Parameters:
poolKey - The key to the target ValidationBean in the heterogeneous pool of ValidationBean(s).
validationBean - The ValidationBean to return.

main

public static void main(java.lang.String[] args)
Main method for testing and sandboxing.

Parameters:
args -