org.apache.avalon.activation.impl
Class TransientLifestyleManager

java.lang.Object
  extended byorg.apache.avalon.activation.impl.AbstractLifestyleManager
      extended byorg.apache.avalon.activation.impl.TransientLifestyleManager
All Implemented Interfaces:
Commissionable, LifestyleManager, Resolver

public class TransientLifestyleManager
extends AbstractLifestyleManager

Version:
$Revision: 1.5 $ $Date: 2004/03/17 10:30:07 $
Author:
Avalon Development Team

Constructor Summary
TransientLifestyleManager(ComponentModel model, ComponentFactory factory)
           
 
Method Summary
 void commission()
          Commission the appliance.
 void decommission()
          Decommission the appliance.
protected  Reference getReference(Object instance)
          Overriding getReference to ensure that we never return a hard reference for a transient.
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, release, resolve, resolve
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TransientLifestyleManager

public TransientLifestyleManager(ComponentModel model,
                                 ComponentFactory factory)
Method Detail

commission

public void commission()
                throws Exception
Commission the appliance.

Specified by:
commission in interface Commissionable
Specified by:
commission in class AbstractLifestyleManager
Throws:
Exception - if a commissioning error occurs

decommission

public void decommission()
Decommission the appliance. Once an appliance 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 released

getReference

protected Reference getReference(Object instance)
Overriding getReference to ensure that we never return a hard reference for a transient.

Overrides:
getReference in class AbstractLifestyleManager


Copyright © The Apache Software Foundation. All Rights Reserved.