org.apache.avalon.activation.impl
Class AbstractAppliance

java.lang.Object
  extended byorg.apache.avalon.activation.impl.AbstractAppliance
All Implemented Interfaces:
Appliance, Commissionable, Resolver
Direct Known Subclasses:
DefaultAppliance, DefaultBlock

public abstract class AbstractAppliance
extends Object
implements Appliance

Abstract appliance.

Version:
$Revision: 1.4 $ $Date: 2004/04/04 23:33:56 $
Author:
Avalon Development Team

Constructor Summary
AbstractAppliance(DeploymentModel model)
           
 
Method Summary
abstract  void commission()
          Commission the appliance.
abstract  void decommission()
          Decommission the appliance.
protected  DeploymentModel getDeploymentModel()
          Return the model backing the handler.
protected  Logger getLogger()
           
abstract  void release(Object instance)
          Release an object
abstract  Object resolve()
          Resolve a object to a value.
abstract  Object resolve(boolean proxy)
          Request resolution of an object from the runtime.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbstractAppliance

public AbstractAppliance(DeploymentModel model)
Method Detail

commission

public abstract void commission()
                         throws Exception
Commission the appliance.

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

decommission

public abstract void decommission()
Decommission the appliance. Once an appliance is decommissioned it may be re-commissioned.

Specified by:
decommission in interface Commissionable

resolve

public abstract Object resolve()
                        throws Exception
Resolve a object to a value.

Specified by:
resolve in interface Resolver
Returns:
the resolved object
Throws:
Exception - if an error occurs

resolve

public abstract Object resolve(boolean proxy)
                        throws Exception
Request resolution of an object from the runtime.

Specified by:
resolve in interface Resolver
Parameters:
proxy - if TRUE the return value will be proxied if the underlying component typoe suppports proxy representation
Returns:
the resolved object
Throws:
Exception - if a deployment error occurs

release

public abstract void release(Object instance)
Release an object

Specified by:
release in interface Resolver
Parameters:
instance - the object to be released

getLogger

protected Logger getLogger()

getDeploymentModel

protected DeploymentModel getDeploymentModel()
Return the model backing the handler.

Returns:
the type that the appliance is managing

toString

public String toString()


Copyright © The Apache Software Foundation. All Rights Reserved.