org.apache.avalon.activation.impl
Class DefaultRuntime

java.lang.Object
  extended byorg.apache.avalon.activation.impl.DefaultRuntime
All Implemented Interfaces:
Runtime

public class DefaultRuntime
extends Object
implements Runtime

Implementation of a system context that exposes a system wide set of parameters.

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

Constructor Summary
DefaultRuntime(SystemContext system)
          Creation of a new system context.
 
Method Summary
 void commission(DeploymentModel model)
          Request the commissioning of a runtime for a supplied deployment model.
 void decommission(DeploymentModel model)
          Request the decommissioning of a runtime for a supplied deployment model.
 void release(DeploymentModel model, Object instance)
          Request the release of an object from the runtime.
 Object resolve(DeploymentModel model)
          Request resolution of an object from the runtime.
 Object resolve(DeploymentModel model, boolean proxy)
          Request resolution of an object from the runtime.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultRuntime

public DefaultRuntime(SystemContext system)
Creation of a new system context.

Parameters:
system - the system context
Method Detail

commission

public void commission(DeploymentModel model)
                throws Exception
Request the commissioning of a runtime for a supplied deployment model.

Specified by:
commission in interface Runtime
Parameters:
model - the deployment model
Throws:
Exception - of a commissioning error occurs

decommission

public void decommission(DeploymentModel model)
Request the decommissioning of a runtime for a supplied deployment model.

Specified by:
decommission in interface Runtime
Parameters:
model - the deployment model
Throws:
Exception - of a commissioning error occurs

resolve

public Object resolve(DeploymentModel model)
               throws Exception
Request resolution of an object from the runtime.

Specified by:
resolve in interface Runtime
Parameters:
model - the deployment model
Throws:
Exception - if a deployment error occurs

resolve

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

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

release

public void release(DeploymentModel model,
                    Object instance)
Request the release of an object from the runtime.

Specified by:
release in interface Runtime
Parameters:
model - the deployment model
instance - the object to release
Throws:
Exception - if a deployment error occurs


Copyright © The Apache Software Foundation. All Rights Reserved.