org.apache.avalon.excalibur.pool
Class DefaultObjectFactory
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
m_constructor
protected Constructor m_constructor
m_arguements
protected Object[] m_arguements
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
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 Apache Software Foundation. All Rights Reserved.