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, Home, LifestyleHandler, LogEnabled
- public class ThreadLifestyleHandler
- extends AbstractLifestyleHandler
- implements Disposable
- Version:
- $Revision: 1.1.1.1 $ $Date: 2003/09/10 08:56:29 $
- Author:
- Avalon Development Team
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(Object source,
Class[] ref)
throws Exception
- Resolve a object to a value relative to a supplied set of
interface classes.
- Specified by:
resolve
in interface Home
- Parameters:
source
- the aquiring sourceref
- the castable service classes
- Returns:
- the resolved object
- Throws:
Exception
- if an error occurs
release
public void release(Object source,
Object object)
- Release an object. The abstract implementation does nothing,
- Specified by:
release
in interface Home
- Parameters:
source
- the context with respect the reclaimed object is qualifiedobject
- the object to be reclaimed
dispose
public void dispose()
- Dispose of the component.
- Specified by:
dispose
in interface Disposable
Copyright © Apache Software Foundation. All Rights Reserved.