|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.myra.framework.ObjectFactory
public abstract class ObjectFactory
Utility class to create class instances.
Constructor Summary | |
---|---|
ObjectFactory()
|
Method Summary | |
---|---|
static java.lang.Object |
create(java.lang.String className)
Creates a new object instance of the specified class. |
static java.lang.Object |
create(java.lang.String className,
java.lang.Class<?>[] types,
java.lang.Object[] parameters)
Creates a new object instance of the specified class. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ObjectFactory()
Method Detail |
---|
public static java.lang.Object create(java.lang.String className)
className
- the fully qualified class name of the object to be
created.
java.lang.IllegalArgumentException
- if there is any error instantiating an
object of the specified class.public static java.lang.Object create(java.lang.String className, java.lang.Class<?>[] types, java.lang.Object[] parameters)
className
- the fully qualified class name of the object to be
created.
java.lang.IllegalArgumentException
- if there is any error instantiating an
object of the specified class.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |