|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.gef.requests.SimpleFactory
A simple CreationFactory that takes a Class in the constructor and creates a new
instance of this Class in getNewObject()
.
Constructor Summary | |
SimpleFactory(java.lang.Class aClass)
Creates a SimpleFactory. |
Method Summary | |
java.lang.Object |
getNewObject()
Create the new object. |
java.lang.Object |
getObjectType()
Returns the type of object this factory creates. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SimpleFactory(java.lang.Class aClass)
aClass
- The class to be instantiated using this factory.Method Detail |
public java.lang.Object getNewObject()
getNewObject
in interface CreationFactory
public java.lang.Object getObjectType()
getObjectType
in interface CreationFactory
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |