Keel 2.1RC2

org.apache.excalibur.mpool.test
Class PoolComparisonProfileAbstract.NoPoolingPool

java.lang.Object
  extended byorg.apache.excalibur.mpool.test.PoolComparisonProfileAbstract.NoPoolingPool
All Implemented Interfaces:
LogEnabled, Pool
Enclosing class:
PoolComparisonProfileAbstract

public static class PoolComparisonProfileAbstract.NoPoolingPool
extends java.lang.Object
implements Pool, LogEnabled

Dummy class used for timing test cases where no pooling is done.


Field Summary
private  ObjectFactory m_factory
           
private  Logger m_logger
           
 
Constructor Summary
PoolComparisonProfileAbstract.NoPoolingPool(ObjectFactory factory)
           
 
Method Summary
 java.lang.Object acquire()
          Acquire an instance of the pooled object.
 void enableLogging(Logger logger)
          Provide component with a logger.
 java.lang.Object newInstance()
          Create a new instance of the object being pooled.
 void release(java.lang.Object poolable)
          Release the instance of the pooled object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_factory

private ObjectFactory m_factory

m_logger

private Logger m_logger
Constructor Detail

PoolComparisonProfileAbstract.NoPoolingPool

public PoolComparisonProfileAbstract.NoPoolingPool(ObjectFactory factory)
Method Detail

enableLogging

public void enableLogging(Logger logger)
Description copied from interface: LogEnabled
Provide component with a logger.

Specified by:
enableLogging in interface LogEnabled
Parameters:
logger - the logger. Must not be null.

acquire

public java.lang.Object acquire()
                         throws java.lang.Exception
Description copied from interface: Pool
Acquire an instance of the pooled object.

Specified by:
acquire in interface Pool
Returns:
the pooled Object instance
Throws:
java.lang.Exception - if the Pool is not able to return an object.

release

public void release(java.lang.Object poolable)
Description copied from interface: Pool
Release the instance of the pooled object.

Specified by:
release in interface Pool
Parameters:
poolable - The pooled object to release to the pool.

newInstance

public java.lang.Object newInstance()
                             throws java.lang.Exception
Description copied from interface: Pool
Create a new instance of the object being pooled.

Specified by:
newInstance in interface Pool
Returns:
the pooled Object instance
Throws:
java.lang.Exception - if the instance cannot be created

Keel 2.1RC2

Please see keelframework.org for information about new Keel releases.