org.apache.avalon.excalibur.pool
Class DefaultObjectFactory

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

public class DefaultObjectFactory
extends 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  Object[] m_arguements
           
protected  Constructor m_constructor
           
 
Constructor Summary
DefaultObjectFactory(Class clazz)
           
DefaultObjectFactory(Class clazz, Class[] arguementClasses, Object[] arguements)
           
DefaultObjectFactory(Constructor constructor, Object[] arguements)
           
 
Method Summary
 void decommission(Object object)
           
 Class getCreatedClass()
           
 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 Constructor m_constructor

m_arguements

protected Object[] m_arguements
Constructor Detail

DefaultObjectFactory

public DefaultObjectFactory(Constructor constructor,
                            Object[] arguements)

DefaultObjectFactory

public DefaultObjectFactory(Class clazz,
                            Class[] arguementClasses,
                            Object[] arguements)
                     throws NoSuchMethodException
Throws:
NoSuchMethodException

DefaultObjectFactory

public DefaultObjectFactory(Class clazz)
                     throws NoSuchMethodException
Throws:
NoSuchMethodException
Method Detail

getCreatedClass

public Class getCreatedClass()
Specified by:
getCreatedClass in interface ObjectFactory

newInstance

public Object newInstance()
Specified by:
newInstance in interface ObjectFactory

decommission

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


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