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

java.lang.Object
  extended byorg.apache.avalon.composition.model.impl.DefaultModelFactory
All Implemented Interfaces:
ModelFactory

public class DefaultModelFactory
extends Object
implements ModelFactory

A factory enabling the establishment of new composition model instances.

Version:
$Revision: 1.16 $ $Date: 2004/05/09 23:51:08 $
Author:
Avalon Development Team

Method Summary
 ComponentModel createComponentModel(ComponentContext context)
          Creation of a new nested deployment model.
 ContainmentModel createContainmentModel(ContainmentContext context)
          Creation of a new nested containment model.
 ContainmentModel createRootContainmentModel(ContainmentProfile profile)
          Creation of a new root containment model using a supplied profile.
 ContainmentModel createRootContainmentModel(URL url)
          Creation of a new root containment model using a URL referring to a containment profile.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createRootContainmentModel

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

Specified by:
createRootContainmentModel in interface ModelFactory
Parameters:
url - a composition profile source
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 using a supplied profile.

Specified by:
createRootContainmentModel in interface ModelFactory
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 deployment model. This method is called by a container implementation when constructing model instances. The factory is identified by its implementation classname.

Specified by:
createComponentModel in interface ModelFactory
Parameters:
context - a potentially foreign deployment context
Returns:
the deployment 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.

Specified by:
createContainmentModel in interface ModelFactory
Parameters:
context - a potentially foreign containment context
Returns:
the containment model
Throws:
ModelException


Copyright © The Apache Software Foundation. All Rights Reserved.