org.apache.avalon.activation.impl
Class ThreadLifestyleManager

java.lang.Object
  extended byorg.apache.avalon.activation.impl.AbstractLifestyleManager
      extended byorg.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

Constructor Summary
ThreadLifestyleManager(ComponentModel model, ComponentFactory factory)
           
 
Method Summary
 void commission()
          Commission the runtime handler.
 void decommission()
          Invokes the decommissioning phase.
protected  void handleRelease(Object instance)
          Release an object.
protected  Object handleResolve()
          Resolve a object to a value relative to a supplied set of interface classes.
 
Methods inherited from class org.apache.avalon.activation.impl.AbstractLifestyleManager
finalize, finalize, getComponentFactory, getComponentModel, getLogger, getReference, release, resolve, resolve
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThreadLifestyleManager

public ThreadLifestyleManager(ComponentModel model,
                              ComponentFactory factory)
Method Detail

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.