|
|||||||||
| Home >> All >> org >> eclipse >> ant >> internal >> ui >> dtd >> [ util overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.eclipse.ant.internal.ui.dtd.util
Class Factory

java.lang.Objectorg.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()
|
|||||||||
| Home >> All >> org >> eclipse >> ant >> internal >> ui >> dtd >> [ util overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
org.eclipse.ant.internal.ui.dtd.util.Factory