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

java.lang.Object
  extended byorg.apache.avalon.fortress.impl.factory.AbstractObjectFactory
      extended byorg.apache.avalon.fortress.impl.factory.NoopObjectFactory
All Implemented Interfaces:
Instrumentable, org.d_haven.mpool.ObjectFactory

public class NoopObjectFactory
extends AbstractObjectFactory

NoopObjectFactory is used in situations where no proxied objects are desired. You are offered no protection with this approach, so caveat emptor.

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

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
NoopObjectFactory(org.d_haven.mpool.ObjectFactory objectFactory)
           
 
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

NoopObjectFactory

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

newInstance

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

dispose

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


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