org.ow2.util.pool.impl.enhanced.callback
Class CreateCB<E>

java.lang.Object
  extended by org.ow2.util.pool.impl.enhanced.internal.stoppableexecution.StoppableExecution<E>
      extended by org.ow2.util.pool.impl.enhanced.callback.CreateCB<E>
Type Parameters:
E -
All Implemented Interfaces:
IPoolItemFactory<E>, IArgumentsCallable<E>

public class CreateCB<E>
extends StoppableExecution<E>
implements IPoolItemFactory<E>

Author:
Gael Lalire

Constructor Summary
CreateCB(IPoolItemFactory<E> create)
           
 
Method Summary
 E createPoolItem()
           
 
Methods inherited from class org.ow2.util.pool.impl.enhanced.internal.stoppableexecution.StoppableExecution
call, forceStop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CreateCB

public CreateCB(IPoolItemFactory<E> create)
Method Detail

createPoolItem

public E createPoolItem()
                 throws CreatePoolItemException
Specified by:
createPoolItem in interface IPoolItemFactory<E>
Returns:
a new pool item
Throws:
CreatePoolItemException


Copyright © 2007-2009 OW2 Consortium. All Rights Reserved.