GEF v2.0

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.


Constructor Summary
CreateRequest.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

CreateRequest.SimpleFactory

public CreateRequest.SimpleFactory(Class aClass)
Creates a SimpleFactory.
Parameters:
aClass - The class to be instantiated using this factory.
Method Detail

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.

GEF v2.0