Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

Eclipse GEF
3.3

org.eclipse.gef.requests
Class SimpleFactory

java.lang.Object
  extended by
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 in getNewObject().

Since:
2.1

Constructor Summary
SimpleFactory (java.lang.Class aClass)
          Creates a SimpleFactory.
 
Method Summary
 java.lang.Object getNewObject ()
          Create the new object.
 java.lang.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

SimpleFactory

public SimpleFactory(java.lang.Class aClass)
Creates a SimpleFactory.

Parameters:
aClass - The class to be instantiated using this factory.
Method Detail

getNewObject

public java.lang.Object getNewObject()
Create the new object.

Specified by:
getNewObject in interface CreationFactory
Returns:
The newly created object.

getObjectType

public java.lang.Object getObjectType()
Returns the type of object this factory creates.

Specified by:
getObjectType in interface CreationFactory
Returns:
The type of object this factory creates.

Eclipse GEF
3.3

Copyright (c) IBM Corp. and others 2000, 2007. All Rights Reserved.

 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire