org.apache.avalon.activation.lifestyle.impl
Class TransientLifestyleHandler

java.lang.Object
  extended byorg.apache.avalon.framework.logger.AbstractLogEnabled
      extended byorg.apache.avalon.activation.lifestyle.impl.AbstractLifestyleHandler
          extended byorg.apache.avalon.activation.lifestyle.impl.TransientLifestyleHandler
All Implemented Interfaces:
Disposable, LifestyleHandler, LogEnabled

public class TransientLifestyleHandler
extends AbstractLifestyleHandler
implements Disposable

Version:
$Revision: 1.6 $ $Date: 2003/12/14 14:09:59 $
Author:
Avalon Development Team

Constructor Summary
TransientLifestyleHandler(Logger logger, Factory factory)
           
 
Method Summary
 void dispose()
          Dispose of the component.
 void release(Object instance, boolean finalized)
          Release an object
 Object resolve()
          Resolve a object to a value relative to a supplied set of interface classes.
 
Methods inherited from class org.apache.avalon.activation.lifestyle.impl.AbstractLifestyleHandler
release
 
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TransientLifestyleHandler

public TransientLifestyleHandler(Logger logger,
                                 Factory factory)
Method Detail

resolve

public Object resolve()
               throws Exception
Resolve a object to a value relative to a supplied set of interface classes.

Specified by:
resolve in interface LifestyleHandler
Returns:
the resolved object
Throws:
Exception - if an error occurs

release

public void release(Object instance,
                    boolean finalized)
Release an object

Specified by:
release in interface LifestyleHandler
Parameters:
instance - the object to be released
finalized - if TRUE the lifestyle handler cannot reuse the instance

dispose

public void dispose()
Dispose of the component.

Specified by:
dispose in interface Disposable


Copyright © Apache Software Foundation. All Rights Reserved.