public class SimpleFactory extends java.lang.Object implements CreationFactory
getNewObject()
.Constructor and Description |
---|
SimpleFactory(java.lang.Class aClass)
Creates a SimpleFactory.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getNewObject()
Create the new object.
|
java.lang.Object |
getObjectType()
Returns the type of object this factory creates.
|
public SimpleFactory(java.lang.Class aClass)
aClass
- The class to be instantiated using this factory.public java.lang.Object getNewObject()
getNewObject
in interface CreationFactory
public java.lang.Object getObjectType()
getObjectType
in interface CreationFactory
Copyright (c) IBM Corp. and others 2000, 2011. All Rights Reserved.