org.apache.avalon.excalibur.pool
Class DefaultObjectFactory

java.lang.Object
  extended byorg.apache.avalon.excalibur.pool.DefaultObjectFactory
All Implemented Interfaces:
ObjectFactory

public class DefaultObjectFactory
extends java.lang.Object
implements ObjectFactory

This is the default for factory that is used to create objects for Pool. It creates objects via reflection and constructor.

Since:
4.0
Version:
CVS $Revision: 1.6 $ $Date: 2004/03/29 16:50:37 $
Author:
Avalon Development Team

Field Summary
protected  java.lang.Object[] m_arguements
           
protected  java.lang.reflect.Constructor m_constructor
           
 
Constructor Summary
DefaultObjectFactory(java.lang.Class clazz)
           
DefaultObjectFactory(java.lang.Class clazz, java.lang.Class[] arguementClasses, java.lang.Object[] arguements)
           
DefaultObjectFactory(java.lang.reflect.Constructor constructor, java.lang.Object[] arguements)
           
 
Method Summary
 void decommission(java.lang.Object object)
           
 java.lang.Class getCreatedClass()
           
 java.lang.Object newInstance()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_constructor

protected java.lang.reflect.Constructor m_constructor

m_arguements

protected java.lang.Object[] m_arguements
Constructor Detail

DefaultObjectFactory

public DefaultObjectFactory(java.lang.reflect.Constructor constructor,
                            java.lang.Object[] arguements)

DefaultObjectFactory

public DefaultObjectFactory(java.lang.Class clazz,
                            java.lang.Class[] arguementClasses,
                            java.lang.Object[] arguements)
                     throws java.lang.NoSuchMethodException

DefaultObjectFactory

public DefaultObjectFactory(java.lang.Class clazz)
                     throws java.lang.NoSuchMethodException
Method Detail

getCreatedClass

public java.lang.Class getCreatedClass()
Specified by:
getCreatedClass in interface ObjectFactory

newInstance

public java.lang.Object newInstance()
Specified by:
newInstance in interface ObjectFactory

decommission

public void decommission(java.lang.Object object)
Specified by:
decommission in interface ObjectFactory


Copyright © 1997-2005 The Apache Software Foundation. All Rights Reserved.