org.eclipse.gef.requests
Class CreateRequest.SimpleFactory
java.lang.Object
|
+--org.eclipse.gef.requests.CreateRequest.SimpleFactory
- All Implemented Interfaces:
- CreateRequest.Factory
- Enclosing class:
- CreateRequest
- public static final class CreateRequest.SimpleFactory
- extends Object
- implements CreateRequest.Factory
A simple implementation of a Factory that knows how to
call the default constructor for a given Java class.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CreateRequest.SimpleFactory
public CreateRequest.SimpleFactory(Class aClass)
- Creates a SimpleFactory.
- Parameters:
aClass - The class to be instantiated using this factory.
getNewObject
public Object getNewObject()
- Create the new object
- Specified by:
getNewObject in interface CreateRequest.Factory
- Returns:
- The newly created object.
getObjectType
public Object getObjectType()
- Returns the type of object this factory creates.
- Specified by:
getObjectType in interface CreateRequest.Factory
- Returns:
- The type of object this factory creates.