Class dnx.util.AllocationManager
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class dnx.util.AllocationManager

java.lang.Object
   |
   +----dnx.util.AllocationManager

public class AllocationManager
extends Object
This class is a simple way to avoid allocating excessive numbers of objects. You create an AllocationManager, specifying a Class; then you call allocate() and free() as necessary to create and "free" (i.e. make available for reuse) objects of the class.

Constructor Index

 o AllocationManager(Class)
 o AllocationManager(String)

Method Index

 o allocate()
 o free(Object)

Constructors

 o AllocationManager
  public AllocationManager(Class cl)
 o AllocationManager
  public AllocationManager(String classname)

Methods

 o allocate
  public synchronized Object allocate()
 o free
  public synchronized void free(Object object)

All Packages  Class Hierarchy  This Package  Previous  Next  Index