org.exolab.castor.util
Interface ObjectFactory
- DefaultObjectFactory
public interface ObjectFactory
A simple interface for creating class instances
$Revision: 5951 $ $Date: 2003-04-23 00:36:31 -0600 (Wed, 23 Apr 2003) $ 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.
|
createInstance
public Object createInstance(Class type)
throws IllegalAccessException,
InstantiationException
Creates a default instance of the given class.
type
- the Class to create an instance of
- the new instance of the given class
createInstance
public Object createInstance(Class type,
Class[] argTypes,
Object[] args)
throws IllegalAccessException,
InstantiationException
Creates a default instance of the given class.
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
- the new instance of the given class
createInstance
public Object createInstance(Class type,
Object[] args)
throws IllegalAccessException,
InstantiationException
Creates a default instance of the given class.
type
- the Class to create an instance ofargs
- the array of arguments to pass to the Class constructor
- the new instance of the given class
Intalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com