org.apache.avalon.composition.model
Interface Model

All Known Subinterfaces:
ContainmentModel, DeploymentModel
All Known Implementing Classes:
DefaultContainmentModel, DefaultDeploymentModel, DefaultModel

public interface Model

Abstract model interface.

Version:
$Revision: 1.1.1.1 $ $Date: 2003/09/24 09:31:18 $
Author:
Avalon Development Team

Method Summary
 Mode getMode()
          Return the mode of model establishment.
 String getName()
          Return the name of the model.
 String getPath()
          Return the model partition path.
 String getQualifiedName()
          Return the model fully qualified name.
 ServiceDescriptor[] getServices()
          Return the set of services produced by the model.
 boolean isaCandidate(DependencyDescriptor dependency)
          Return TRUE is this model is capable of supporting a supplied depedendency.
 boolean isaCandidate(StageDescriptor stage)
          Return TRUE is this model is capable of supporting a supplied stage dependency.
 

Method Detail

getName

public String getName()
Return the name of the model.

Returns:
the name

getPath

public String getPath()
Return the model partition path.

Returns:
the path

getQualifiedName

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

Returns:
the fully qualified name

getMode

public Mode getMode()
Return the mode of model establishment.

Returns:
the mode

getServices

public ServiceDescriptor[] getServices()
Return the set of services produced by the model.

Returns:
the services

isaCandidate

public boolean isaCandidate(DependencyDescriptor dependency)
Return TRUE is this model is capable of supporting a supplied depedendency.

Returns:
true if this model can fulfill the dependency

isaCandidate

public boolean isaCandidate(StageDescriptor stage)
Return TRUE is this model is capable of supporting a supplied stage dependency.

Returns:
true if this model can fulfill the dependency


Copyright © Apache Software Foundation. All Rights Reserved.