org.jcon.data
Class Factory

java.lang.Object
  extended by org.jcon.data.Factory
Direct Known Subclasses:
DrawingFactory

public class Factory
extends java.lang.Object

A factory creates an object of a specific class upon request. Request is done using a string identifier. Currently only classes which have default constructors are supported.


Constructor Summary
Factory()
           
 
Method Summary
 void addTemplate(java.lang.String partname, java.lang.String classname)
          Add a template which uses a class to create the object using a default constructor.
 java.lang.Object orderPart(java.lang.String partname)
          "Order" a part from the factory.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Factory

public Factory()
Method Detail

addTemplate

public void addTemplate(java.lang.String partname,
                        java.lang.String classname)
Add a template which uses a class to create the object using a default constructor.


orderPart

public java.lang.Object orderPart(java.lang.String partname)
"Order" a part from the factory.