|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ObjectFactory
A simple interface for creating class instances
| Method Summary | |
|---|---|
Object |
createInstance(Class type)
Creates a default instance of the given class. |
Object |
createInstance(Class type,
Class[] argTypes,
Object[] args)
Creates a default instance of the given class. |
Object |
createInstance(Class type,
Object[] args)
Creates a default instance of the given class. |
| Method Detail |
|---|
Object createInstance(Class type)
throws IllegalAccessException,
InstantiationException
type - the Class to create an instance of
IllegalAccessException
InstantiationException
Object createInstance(Class type,
Object[] args)
throws IllegalAccessException,
InstantiationException
type - the Class to create an instance ofargs - the array of arguments to pass to the Class constructor
IllegalAccessException
InstantiationException
Object createInstance(Class type,
Class[] argTypes,
Object[] args)
throws IllegalAccessException,
InstantiationException
type - the Class to create an instance ofargTypes - the Class types for each argument, used
to find the correct constructorargs - the array of arguments to pass to the Class constructor
IllegalAccessException
InstantiationException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||