org.apache.avalon.fortress.impl.factory
Class AbstractObjectFactory
java.lang.Object
org.apache.avalon.fortress.impl.factory.AbstractObjectFactory
- All Implemented Interfaces:
- Instrumentable, org.d_haven.mpool.ObjectFactory
- Direct Known Subclasses:
- NoopObjectFactory, ProxyObjectFactory, WrapperObjectFactory
public abstract class AbstractObjectFactory
- extends Object
- implements org.d_haven.mpool.ObjectFactory, 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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
m_delegateFactory
protected final org.d_haven.mpool.ObjectFactory m_delegateFactory
- The
ObjectFactory
proper
we delegate all calls to.
AbstractObjectFactory
public AbstractObjectFactory(org.d_haven.mpool.ObjectFactory objectFactory)
newInstance
public abstract Object newInstance()
throws Exception
- Specified by:
newInstance
in interface org.d_haven.mpool.ObjectFactory
- Throws:
Exception
- See Also:
ObjectFactory.newInstance()
getCreatedClass
public final Class getCreatedClass()
- Specified by:
getCreatedClass
in interface org.d_haven.mpool.ObjectFactory
- See Also:
ObjectFactory.getCreatedClass()
dispose
public abstract void dispose(Object object)
throws Exception
- Specified by:
dispose
in interface org.d_haven.mpool.ObjectFactory
- Throws:
Exception
- See Also:
ObjectFactory.dispose(Object)
setInstrumentableName
public final void setInstrumentableName(String name)
- Specified by:
setInstrumentableName
in interface Instrumentable
getInstrumentableName
public final String getInstrumentableName()
- Specified by:
getInstrumentableName
in interface Instrumentable
getInstruments
public final Instrument[] getInstruments()
- Specified by:
getInstruments
in interface Instrumentable
getChildInstrumentables
public final Instrumentable[] getChildInstrumentables()
- Specified by:
getChildInstrumentables
in interface Instrumentable
guessWorkInterfaces
protected static Class[] guessWorkInterfaces(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-2012 The Apache Software Foundation. All Rights Reserved.