org.apache.avalon.composition.provider
Interface Runtime

All Known Implementing Classes:
DefaultRuntime

public interface Runtime

Defintion of runtime services.

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

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.
 

Method Detail

commission

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

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.

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.

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.

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.

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.