Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.eclipse.ant.internal.ui.dtd.util
Class Factory  view Factory download Factory.java

java.lang.Object
  extended byorg.eclipse.ant.internal.ui.dtd.util.Factory

public class Factory
extends java.lang.Object

Factory maintains a free list and, with FactoryObject, serves as a basis for factories of all types. Factory should only be subclassed in singleton classes; for static factories, it may be instantiated as a static object.


Nested Class Summary
private static class Factory.Head
           
 
Field Summary
private  java.lang.ref.SoftReference free
           
 
Constructor Summary
Factory()
           
 
Method Summary
 FactoryObject getFree()
          Return the first object on the free list or null if none.
private  Factory.Head getHead()
           
 void setFree(FactoryObject obj)
          Add an object to the free list.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

free

private java.lang.ref.SoftReference free
Constructor Detail

Factory

public Factory()
Method Detail

getFree

public FactoryObject getFree()
Return the first object on the free list or null if none.


setFree

public void setFree(FactoryObject obj)
Add an object to the free list.


getHead

private Factory.Head getHead()