org.apache.avalon.composition.model
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: 2003/10/28 12:53:48 $
Author:
Avalon Development Team

Method Summary
 ContainmentContext createContainmentContext(ContainmentProfile profile)
          Creation of a new root containment context.
 ContainmentModel createContainmentModel(ContainmentContext context)
          Creation of a new nested containment model.
 ContainmentModel createContainmentModel(ContainmentProfile profile)
          Creation of a new root containment model.
 ContainmentModel createContainmentModel(URL url)
          Creation of a new root containment model.
 DeploymentModel createDeploymentModel(DeploymentContext context)
          Creation of a new nested deployment model.
 

Method Detail

createContainmentModel

public ContainmentModel createContainmentModel(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

createContainmentModel

public ContainmentModel createContainmentModel(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

createContainmentContext

public ContainmentContext createContainmentContext(ContainmentProfile profile)
                                            throws ModelException
Creation of a new root containment context.

Parameters:
profile - a composition profile
Returns:
the containment model
Throws:
ModelException

createContainmentModel

public ContainmentModel createContainmentModel(ContainmentContext context)
                                        throws ModelException
Creation of a new nested containment model. This method is called by a container implementation when constructing model instances. The factory is identified by its implementation classname.

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

createDeploymentModel

public DeploymentModel createDeploymentModel(DeploymentContext context)
                                      throws ModelException
Creation of a new nested deployment model. This method is called by a container implementation when constructing model instances. The factory is identified by its implementation classname.

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


Copyright © Apache Software Foundation. All Rights Reserved.