|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.avalon.fortress.impl.factory.AbstractObjectFactory org.apache.avalon.fortress.impl.factory.WrapperObjectFactory
An object factory that delegates all calls to another object factory and wraps the returned object into another object that exposes only the wrapped object's work interface(s).
Field Summary |
Fields inherited from class org.apache.avalon.fortress.impl.factory.AbstractObjectFactory |
m_delegateFactory |
Fields inherited from interface org.apache.excalibur.instrument.Instrumentable |
EMPTY_INSTRUMENT_ARRAY, EMPTY_INSTRUMENTABLE_ARRAY |
Constructor Summary | |
WrapperObjectFactory(org.d_haven.mpool.ObjectFactory objectFactory)
Creates a WrapperObjectFactory with the specified
ObjectFactory as the
object factory to delegate all calls for new instances to. |
Method Summary | |
void |
dispose(java.lang.Object object)
|
java.lang.Object |
newInstance()
|
Methods inherited from class org.apache.avalon.fortress.impl.factory.AbstractObjectFactory |
getChildInstrumentables, getCreatedClass, getInstrumentableName, getInstruments, guessWorkInterfaces, setInstrumentableName |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public WrapperObjectFactory(org.d_haven.mpool.ObjectFactory objectFactory) throws java.lang.IllegalArgumentException
WrapperObjectFactory
with the specified
ObjectFactory
as the
object factory to delegate all calls for new instances to.
objectFactory
- The ObjectFactory
to sue when creating new instances
java.lang.IllegalArgumentException
- If objFactory
is
null
Method Detail |
public java.lang.Object newInstance() throws java.lang.Exception
newInstance
in interface org.d_haven.mpool.ObjectFactory
newInstance
in class AbstractObjectFactory
java.lang.Exception
ObjectFactory.newInstance()
public void dispose(java.lang.Object object) throws java.lang.Exception
dispose
in interface org.d_haven.mpool.ObjectFactory
dispose
in class AbstractObjectFactory
java.lang.Exception
ObjectFactory.dispose(java.lang.Object)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |