jason.service.pool.objectpool
Class GenericObjectPool

java.lang.Object
  |
  +--java.util.AbstractCollection
        |
        +--java.util.AbstractList
              |
              +--java.util.Vector
                    |
                    +--java.util.Stack
                          |
                          +--jason.service.pool.objectpool.GenericObjectPool
All Implemented Interfaces:
java.lang.Cloneable, java.util.Collection, java.util.List, java.util.RandomAccess, java.io.Serializable

public class GenericObjectPool
extends java.util.Stack

See Also:
Serialized Form

Field Summary
protected  ClassGenerator classGenerator
           
protected  java.lang.String className
           
protected  int poolSize
           
 
Fields inherited from class java.util.Vector
capacityIncrement, elementCount, elementData
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
GenericObjectPool()
           
GenericObjectPool(int poolSize)
           
 
Method Summary
 void createPool(java.lang.String className)
           
static void main(java.lang.String[] args)
           
 
Methods inherited from class java.util.Stack
empty, peek, pop, push, search
 
Methods inherited from class java.util.Vector
add, add, addAll, addAll, addElement, capacity, clear, clone, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, equals, firstElement, get, hashCode, indexOf, indexOf, insertElementAt, isEmpty, lastElement, lastIndexOf, lastIndexOf, remove, remove, removeAll, removeAllElements, removeElement, removeElementAt, removeRange, retainAll, set, setElementAt, setSize, size, subList, toArray, toArray, toString, trimToSize
 
Methods inherited from class java.util.AbstractList
iterator, listIterator, listIterator
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
iterator, listIterator, listIterator
 

Field Detail

poolSize

protected int poolSize

className

protected java.lang.String className

classGenerator

protected ClassGenerator classGenerator
Constructor Detail

GenericObjectPool

public GenericObjectPool()

GenericObjectPool

public GenericObjectPool(int poolSize)
Method Detail

createPool

public void createPool(java.lang.String className)

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
java.lang.Exception