Public Member Functions

org.exolab.castor.util.DefaultObjectFactory Class Reference

Inheritance diagram for org.exolab.castor.util.DefaultObjectFactory:
org.exolab.castor.util.ObjectFactory

List of all members.

Public Member Functions

Object createInstance (Class type) throws IllegalAccessException, InstantiationException
Object createInstance (Class type, Object[] args) throws IllegalAccessException, InstantiationException
Object createInstance (Class type, Class[] argTypes, Object[] args) throws IllegalAccessException, InstantiationException

Detailed Description

The default implementation of ObjectFactory used for creating class instances

Author:
Keith Visco
Version:
Revision:
1.3
Date:
2004/04/09 04:51:24
See also:
ObjectFactory

Member Function Documentation

Object org.exolab.castor.util.DefaultObjectFactory.createInstance ( Class  type  )  throws IllegalAccessException, InstantiationException

Creates a default instance of the given class.

Parameters:
type the Class to create an instance of
Returns:
the new instance of the given class

Implements org.exolab.castor.util.ObjectFactory.

Referenced by org.exolab.castor.util.DefaultObjectFactory.createInstance().

Object org.exolab.castor.util.DefaultObjectFactory.createInstance ( Class  type,
Class[]  argTypes,
Object[]  args 
) throws IllegalAccessException, InstantiationException

Creates a default instance of the given class.

Parameters:
type the Class to create an instance of
argTypes the Class types for each argument, used to find the correct constructor
args the array of arguments to pass to the Class constructor
Returns:
the new instance of the given class

Implements org.exolab.castor.util.ObjectFactory.

Object org.exolab.castor.util.DefaultObjectFactory.createInstance ( Class  type,
Object[]  args 
) throws IllegalAccessException, InstantiationException

Creates a default instance of the given class.

Parameters:
type the Class to create an instance of
args the array of arguments to pass to the Class constructor
Returns:
the new instance of the given class

Implements org.exolab.castor.util.ObjectFactory.

References org.exolab.castor.util.DefaultObjectFactory.createInstance().


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations Properties