org.apache.avalon.fortress.impl.factory
Class AbstractObjectFactory

java.lang.Object
  extended byorg.apache.avalon.fortress.impl.factory.AbstractObjectFactory
All Implemented Interfaces:
org.apache.excalibur.instrument.Instrumentable, org.d_haven.mpool.ObjectFactory
Direct Known Subclasses:
NoopObjectFactory, ProxyObjectFactory, WrapperObjectFactory

public abstract class AbstractObjectFactory
extends java.lang.Object
implements org.d_haven.mpool.ObjectFactory, org.apache.excalibur.instrument.Instrumentable

AbstractObjectFactory does XYZ

Version:
CVS $ Revision: 1.1 $
Author:
Avalon Development Team

Field Summary
protected  org.d_haven.mpool.ObjectFactory m_delegateFactory
          The ObjectFactory proper we delegate all calls to.
 
Fields inherited from interface org.apache.excalibur.instrument.Instrumentable
EMPTY_INSTRUMENT_ARRAY, EMPTY_INSTRUMENTABLE_ARRAY
 
Constructor Summary
AbstractObjectFactory(org.d_haven.mpool.ObjectFactory objectFactory)
           
 
Method Summary
abstract  void dispose(java.lang.Object object)
           
 org.apache.excalibur.instrument.Instrumentable[] getChildInstrumentables()
           
 java.lang.Class getCreatedClass()
           
 java.lang.String getInstrumentableName()
           
 org.apache.excalibur.instrument.Instrument[] getInstruments()
           
protected static java.lang.Class[] guessWorkInterfaces(java.lang.Class clazz)
          Get a list of interfaces to proxy by scanning through all interfaces a class implements and skipping invalid interfaces (as defined in #INVALID_INTERFACES).
abstract  java.lang.Object newInstance()
           
 void setInstrumentableName(java.lang.String name)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_delegateFactory

protected final org.d_haven.mpool.ObjectFactory m_delegateFactory
The ObjectFactory proper we delegate all calls to.

Constructor Detail

AbstractObjectFactory

public AbstractObjectFactory(org.d_haven.mpool.ObjectFactory objectFactory)
Method Detail

newInstance

public abstract java.lang.Object newInstance()
                                      throws java.lang.Exception
Specified by:
newInstance in interface org.d_haven.mpool.ObjectFactory
Throws:
java.lang.Exception
See Also:
ObjectFactory.newInstance()

getCreatedClass

public final java.lang.Class getCreatedClass()
Specified by:
getCreatedClass in interface org.d_haven.mpool.ObjectFactory
See Also:
ObjectFactory.getCreatedClass()

dispose

public abstract void dispose(java.lang.Object object)
                      throws java.lang.Exception
Specified by:
dispose in interface org.d_haven.mpool.ObjectFactory
Throws:
java.lang.Exception
See Also:
ObjectFactory.dispose(Object)

setInstrumentableName

public final void setInstrumentableName(java.lang.String name)
Specified by:
setInstrumentableName in interface org.apache.excalibur.instrument.Instrumentable

getInstrumentableName

public final java.lang.String getInstrumentableName()
Specified by:
getInstrumentableName in interface org.apache.excalibur.instrument.Instrumentable

getInstruments

public final org.apache.excalibur.instrument.Instrument[] getInstruments()
Specified by:
getInstruments in interface org.apache.excalibur.instrument.Instrumentable

getChildInstrumentables

public final org.apache.excalibur.instrument.Instrumentable[] getChildInstrumentables()
Specified by:
getChildInstrumentables in interface org.apache.excalibur.instrument.Instrumentable

guessWorkInterfaces

protected static java.lang.Class[] guessWorkInterfaces(java.lang.Class clazz)
Get a list of interfaces to proxy by scanning through all interfaces a class implements and skipping invalid interfaces (as defined in #INVALID_INTERFACES).

Parameters:
clazz - the class
Returns:
the list of interfaces to proxy


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