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

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.ThreadLifestyleHandler
All Implemented Interfaces:
Disposable, LifestyleHandler, LogEnabled

public class ThreadLifestyleHandler
extends AbstractLifestyleHandler
implements Disposable

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

Constructor Summary
ThreadLifestyleHandler(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

ThreadLifestyleHandler

public ThreadLifestyleHandler(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. The abstract implementation does nothing,

Specified by:
release in interface LifestyleHandler
Parameters:
instance - the object to be reclaimed
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.