org.apache.avalon.composition.model
Interface ContainmentModel

All Superinterfaces:
Model
All Known Implementing Classes:
DefaultContainmentModel

public interface ContainmentModel
extends Model

Containment model is an extended deployment model that aggregates a set of models. A containment model describes a logical containment context.

Version:
$Revision: 1.1.1.1 $ $Date: 2003/08/31 14:27:13 $
Author:
Avalon Development Team

Field Summary
static String SEPERATOR
           
 
Method Summary
 Model addModel(Profile profile)
          Addition of a new subsidiary model within the containment context using a supplied profile.
 Model addModel(URL url)
          Addition of a new subsidiary model within the containment context using a supplied profile url.
 CategoriesDirective getCategories()
          Return the logging categories.
 ClassLoaderModel getClassLoaderModel()
          Return the classloader model.
 ServiceDirective getExportDirective(Class clazz)
          Return the set of service export directives for a supplied class.
 ServiceDirective[] getExportDirectives()
          Return the set of service export directives.
 Model getModel(DependencyDescriptor dependency)
          Return a model relative to a supplied dependency.
 Model getModel(StageDescriptor stage)
          Return a model relative to a supplied stage descriptor.
 Model getModel(String name)
          Return a model relative to a supplied name.
 Model[] getModels()
          Return the set of models nested within this model.
 String getPartition()
          Return the partition established by the containment model.
 void setCategories(CategoriesDirective categories)
          Set categories.
 
Methods inherited from interface org.apache.avalon.composition.model.Model
getMode, getName, getPath, getQualifiedName, getServices, isaCandidate, isaCandidate
 

Field Detail

SEPERATOR

public static final String SEPERATOR
See Also:
Constant Field Values
Method Detail

getCategories

public CategoriesDirective getCategories()
Return the logging categories.

Returns:
the logging categories

setCategories

public void setCategories(CategoriesDirective categories)
Set categories.

Parameters:
categories - the logging categories

getPartition

public String getPartition()
Return the partition established by the containment model.

Returns:
the partition name

getClassLoaderModel

public ClassLoaderModel getClassLoaderModel()
Return the classloader model.

Returns:
the classloader model

getModels

public Model[] getModels()
Return the set of models nested within this model.

Returns:
the classloader model

getModel

public Model getModel(String name)
Return a model relative to a supplied name.

Returns:
the named model or null if the name is unknown

getModel

public Model getModel(DependencyDescriptor dependency)
               throws ModelException
Return a model relative to a supplied dependency.

Returns:
a matching model or null if the dependency is unresolvable
Throws:
ModelException - if an error occurs during model establishment

getModel

public Model getModel(StageDescriptor stage)
               throws ModelException
Return a model relative to a supplied stage descriptor.

Parameters:
stage - the stage descriptor
Returns:
model of a an stage handler or null if the stage is unresolvable
Throws:
ModelException - if an error occurs during model establishment

addModel

public Model addModel(URL url)
               throws ModelException
Addition of a new subsidiary model within the containment context using a supplied profile url.

Parameters:
url - a containment profile url
Returns:
the model based on the derived profile
Throws:
ModelException - if an error occurs during model establishment

addModel

public Model addModel(Profile profile)
               throws ModelException
Addition of a new subsidiary model within the containment context using a supplied profile.

Parameters:
profile - a containment or deployment profile
Returns:
the model based on the supplied profile
Throws:
ModelException - if an error occurs during model establishment

getExportDirectives

public ServiceDirective[] getExportDirectives()
Return the set of service export directives.

Returns:
t he export directives

getExportDirective

public ServiceDirective getExportDirective(Class clazz)
Return the set of service export directives for a supplied class.

Returns:
the export directives


Copyright © Apache Software Foundation. All Rights Reserved.