Package org.eclipse.gef.requests
Class SimpleFactory
- java.lang.Object
-
- org.eclipse.gef.requests.SimpleFactory
-
- All Implemented Interfaces:
CreationFactory
public class SimpleFactory extends java.lang.Object implements CreationFactory
A simple CreationFactory that takes a Class in the constructor and creates a new instance of this Class ingetNewObject()
.- Since:
- 2.1
-
-
Constructor Summary
Constructors Constructor Description SimpleFactory(java.lang.Class aClass)
Creates a SimpleFactory.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
getNewObject()
Create the new object.java.lang.Object
getObjectType()
Returns the type of object this factory creates.
-
-
-
Method Detail
-
getNewObject
public java.lang.Object getNewObject()
Create the new object.- Specified by:
getNewObject
in interfaceCreationFactory
- Returns:
- The newly created object.
-
getObjectType
public java.lang.Object getObjectType()
Returns the type of object this factory creates.- Specified by:
getObjectType
in interfaceCreationFactory
- Returns:
- The type of object this factory creates.
-
-