org.apache.avalon.composition.provider
Interface ModelFactory

All Known Implementing Classes:
DefaultModelFactory

public interface ModelFactory

A factory enabling the establishment of new containment model instances.

Version:
$Revision: 1.2 $ $Date: 2004/03/17 10:39:11 $
Author:
Avalon Development Team

Method Summary
 ComponentModel createComponentModel(ComponentContext context)
          Creation of a new nested component model using a supplied component context.
 ContainmentModel createContainmentModel(ContainmentContext context)
          Creation of a new nested containment model using a supplied containment context.
 ContainmentModel createRootContainmentModel(ContainmentProfile profile)
          Creation of a new root containment model.
 ContainmentModel createRootContainmentModel(URL url)
          Creation of a new root containment model.
 

Method Detail

createRootContainmentModel

public ContainmentModel createRootContainmentModel(URL url)
                                            throws ModelException
Creation of a new root containment model.

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

createRootContainmentModel

public ContainmentModel createRootContainmentModel(ContainmentProfile profile)
                                            throws ModelException
Creation of a new root containment model.

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

createComponentModel

public ComponentModel createComponentModel(ComponentContext context)
                                    throws ModelException
Creation of a new nested component model using a supplied component context.

Parameters:
context - a potentially foreign component context
Returns:
the compoent model
Throws:
ModelException

createContainmentModel

public ContainmentModel createContainmentModel(ContainmentContext context)
                                        throws ModelException
Creation of a new nested containment model using a supplied containment context.

Parameters:
context - a potentially foreign containment context
Returns:
the containment model
Throws:
ModelException


Copyright © The Apache Software Foundation. All Rights Reserved.