|
Eclipse GEF 2.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.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(Class aClass)
Creates a SimpleFactory. |
Method Summary | |
Object |
getNewObject()
Create the new object. |
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(Class aClass)
aClass
- The class to be instantiated using this factory.Method Detail |
public Object getNewObject()
getNewObject
in interface CreationFactory
public Object getObjectType()
getObjectType
in interface CreationFactory
|
Eclipse GEF 2.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |