org.apache.avalon.activation.impl
Class ThreadLifestyleManager
java.lang.Object
org.apache.avalon.activation.impl.AbstractLifestyleManager
org.apache.avalon.activation.impl.ThreadLifestyleManager
- All Implemented Interfaces:
- Commissionable, LifestyleManager, Resolver
- public class ThreadLifestyleManager
- extends AbstractLifestyleManager
- Version:
- $Revision: 1.4 $ $Date: 2004/03/17 10:30:07 $
- Author:
- Avalon Development Team
ThreadLifestyleManager
public ThreadLifestyleManager(ComponentModel model,
ComponentFactory factory)
commission
public void commission()
throws Exception
- Commission the runtime handler.
- Specified by:
commission
in interface Commissionable
- Specified by:
commission
in class AbstractLifestyleManager
- Throws:
Exception
- if a hanfdler commissioning error occurs
decommission
public void decommission()
- Invokes the decommissioning phase. Once a handler is
decommissioned it may be re-commissioned.
- Specified by:
decommission
in interface Commissionable
- Specified by:
decommission
in class AbstractLifestyleManager
handleResolve
protected Object handleResolve()
throws Exception
- Resolve a object to a value relative to a supplied set of
interface classes.
- Specified by:
handleResolve
in class AbstractLifestyleManager
- Returns:
- the resolved object
- Throws:
Exception
- if an error occurs
handleRelease
protected void handleRelease(Object instance)
- Release an object.
- Specified by:
handleRelease
in class AbstractLifestyleManager
- Parameters:
instance
- the object to be reclaimed
Copyright © The Apache Software Foundation. All Rights Reserved.