Public Member Functions

org.exolab.castor.util.ObjectFactory Interface Reference

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

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

A simple interface for creating class instances

Author:
Keith Visco
Version:
Revision:
1.1
Date:
2003/04/23 06:36:31

Member Function Documentation

Object org.exolab.castor.util.ObjectFactory.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

Implemented in org.exolab.castor.util.DefaultObjectFactory.

Object org.exolab.castor.util.ObjectFactory.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

Implemented in org.exolab.castor.util.DefaultObjectFactory.

Object org.exolab.castor.util.ObjectFactory.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

Implemented in org.exolab.castor.util.DefaultObjectFactory.


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