org.apache.avalon.activation.lifestyle.impl
Class ThreadLifestyleHandler
java.lang.Object
org.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.avalon.activation.lifestyle.impl.AbstractLifestyleHandler
org.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
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ThreadLifestyleHandler
public ThreadLifestyleHandler(Logger logger,
Factory factory)
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 reclaimedfinalized
- 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.