Package org.eclipse.gef.requests
Class SimpleFactory<T>
java.lang.Object
org.eclipse.gef.requests.SimpleFactory<T>
- Type Parameters:
- T- the type of object that is created by this factory.
- 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 SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionCreate the new object.Returns the type of object this factory creates.
- 
Constructor Details- 
SimpleFactoryCreates a SimpleFactory.- Parameters:
- aClass- The class to be instantiated using this factory.
 
 
- 
- 
Method Details- 
getNewObjectCreate the new object.- Specified by:
- getNewObjectin interface- CreationFactory
- Returns:
- The newly created object.
 
- 
getObjectTypeReturns the type of object this factory creates.- Specified by:
- getObjectTypein interface- CreationFactory
- Returns:
- The type of object this factory creates.
 
 
-