org.apache.avalon.composition.model.impl
Class DefaultDeploymentContext

java.lang.Object
  extended byorg.apache.avalon.framework.context.DefaultContext
      extended byorg.apache.avalon.composition.model.impl.DefaultDeploymentContext
All Implemented Interfaces:
Context, DeploymentContext
Direct Known Subclasses:
DefaultComponentContext, DefaultContainmentContext

public class DefaultDeploymentContext
extends DefaultContext
implements DeploymentContext

Default implementation of a deployment context.

Version:
$Revision: 1.7 $ $Date: 2004/03/11 01:30:38 $
Author:
Avalon Development Team

Field Summary
 
Fields inherited from interface org.apache.avalon.composition.provider.DeploymentContext
SEPARATOR
 
Constructor Summary
DefaultDeploymentContext(Logger logger, SystemContext system, String partition, String name, Mode mode, DeploymentProfile profile, DependencyGraph graph)
          Creation of a new deployment context.
 
Method Summary
 DependencyGraph getDependencyGraph()
          Return the dependency graph used to construct deployment and decommissioning sequences.
 Logger getLogger()
          Return the assigned logger.
 Mode getMode()
          Return the mode of establishment.
 String getName()
          Return the profile name.
 String getPartitionName()
          Return the assigned partition name.
 DeploymentProfile getProfile()
          Return the deployment profile.
 String getQualifiedName()
          Return the model fully qualified name.
 SystemContext getSystemContext()
          Return the system context.
 
Methods inherited from class org.apache.avalon.framework.context.DefaultContext
checkWriteable, get, getContextData, getParent, hide, makeReadOnly, put
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.avalon.framework.context.Context
get
 

Constructor Detail

DefaultDeploymentContext

public DefaultDeploymentContext(Logger logger,
                                SystemContext system,
                                String partition,
                                String name,
                                Mode mode,
                                DeploymentProfile profile,
                                DependencyGraph graph)
Creation of a new deployment context.

Parameters:
logger - the logging channel to assign
partition - the assigned partition name
name - the profile name
mode - the deployment mode
graph - the parent deployment assembly graph
Method Detail

getSystemContext

public SystemContext getSystemContext()
Return the system context.

Specified by:
getSystemContext in interface DeploymentContext
Returns:
the system context

getName

public String getName()
Return the profile name.

Specified by:
getName in interface DeploymentContext
Returns:
the name

getPartitionName

public String getPartitionName()
Return the assigned partition name.

Specified by:
getPartitionName in interface DeploymentContext
Returns:
the partition name

getQualifiedName

public String getQualifiedName()
Return the model fully qualified name.

Specified by:
getQualifiedName in interface DeploymentContext
Returns:
the fully qualified name

getMode

public Mode getMode()
Return the mode of establishment.

Specified by:
getMode in interface DeploymentContext
Returns:
the mode

getProfile

public DeploymentProfile getProfile()
Return the deployment profile.

Specified by:
getProfile in interface DeploymentContext
Returns:
the profile

getLogger

public Logger getLogger()
Return the assigned logger.

Specified by:
getLogger in interface DeploymentContext
Returns:
the logging channel

getDependencyGraph

public DependencyGraph getDependencyGraph()
Return the dependency graph used to construct deployment and decommissioning sequences.

Specified by:
getDependencyGraph in interface DeploymentContext
Returns:
the dependency graph


Copyright © The Apache Software Foundation. All Rights Reserved.