com.scooterframework.common.util
Class ObjectFactory

java.lang.Object
  extended by com.scooterframework.common.util.ObjectFactory
Direct Known Subclasses:
AutoLoadedObjectFactory, OrmObjectFactory

public class ObjectFactory
extends java.lang.Object

ObjectFactory class has helper methods for object creation.


Constructor Summary
protected ObjectFactory()
           
 
Method Summary
 java.lang.Object execute(java.lang.String className, java.lang.String methodName, java.lang.Object[] args)
           
static ObjectFactory getFactory()
           
 java.lang.Class<?> loadClass(java.lang.String className)
           
 java.lang.Object newInstance(java.lang.Class<?> clz)
           
 java.lang.Object newInstance(java.lang.Class<?> clz, java.lang.Class<?>[] parameterTypes, java.lang.Object[] initargs)
           
 java.lang.Object newInstance(java.lang.String className)
           
 java.lang.Object newInstance(java.lang.String className, java.lang.Class<?>[] parameterTypes, java.lang.Object[] initargs)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObjectFactory

protected ObjectFactory()
Method Detail

getFactory

public static ObjectFactory getFactory()

loadClass

public java.lang.Class<?> loadClass(java.lang.String className)
                             throws java.lang.ClassNotFoundException
Throws:
java.lang.ClassNotFoundException

newInstance

public java.lang.Object newInstance(java.lang.Class<?> clz)

newInstance

public java.lang.Object newInstance(java.lang.String className)

newInstance

public java.lang.Object newInstance(java.lang.Class<?> clz,
                                    java.lang.Class<?>[] parameterTypes,
                                    java.lang.Object[] initargs)

newInstance

public java.lang.Object newInstance(java.lang.String className,
                                    java.lang.Class<?>[] parameterTypes,
                                    java.lang.Object[] initargs)

execute

public java.lang.Object execute(java.lang.String className,
                                java.lang.String methodName,
                                java.lang.Object[] args)