Methods Summary |
---|
public void | destroy()
log.trace("destroying pool");
// This really serves little purpose, because we want the whole thread local map to die
pool.remove();
|
public BeanContext | get()
BeanContext ctx = pool.get();
if (ctx != null)
{
pool.set(null);
return ctx;
}
ctx = create();
return ctx;
|
public BeanContext | get(java.lang.Class[] initTypes, java.lang.Object[] initValues)
BeanContext ctx = pool.get();
if (ctx != null)
{
pool.set(null);
return ctx;
}
ctx = create(initTypes, initValues);
return ctx;
|
public int | getAvailableCount()
return -1;
|
public int | getCurrentSize()
return -1;
|
public int | getMaxSize()
return -1;
|
public void | release(BeanContext ctx)
if (pool.get() != null)
remove(ctx);
else
pool.set(ctx);
|
public void | setMaxSize(int maxSize)
|