Package org.eclipse.gef.requests
Class SimpleFactory
java.lang.Object
org.eclipse.gef.requests.SimpleFactory
- All Implemented Interfaces:
CreationFactory
A simple CreationFactory that takes a Class in the constructor and creates a
new instance of this Class in
getNewObject()
.- Since:
- 2.1
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreate the new object.Returns the type of object this factory creates.
-
Constructor Details
-
SimpleFactory
Creates a SimpleFactory.- Parameters:
aClass
- The class to be instantiated using this factory.
-
-
Method Details
-
getNewObject
Create the new object.- Specified by:
getNewObject
in interfaceCreationFactory
- Returns:
- The newly created object.
-
getObjectType
Returns the type of object this factory creates.- Specified by:
getObjectType
in interfaceCreationFactory
- Returns:
- The type of object this factory creates.
-