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