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

java.lang.Object
  extended byorg.apache.avalon.framework.logger.AbstractLogEnabled
      extended byorg.apache.avalon.composition.model.impl.DefaultModelFactory
All Implemented Interfaces:
LogEnabled, ModelFactory

public class DefaultModelFactory
extends AbstractLogEnabled
implements ModelFactory

A factory enabling the establishment of new composition model instances.

Version:
$Revision: 1.1.1.1 $ $Date: 2003/08/31 14:30:35 $
Author:
Avalon Development Team

Constructor Summary
DefaultModelFactory(SystemContext system)
           
 
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 using a supplied profile.
 ContainmentModel createContainmentModel(URL url)
          Creation of a new root containment model using a URL referring to a containment profile.
 DeploymentModel createDeploymentModel(DeploymentContext context)
          Creation of a new nested deployment model.
 
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultModelFactory

public DefaultModelFactory(SystemContext system)
Method Detail

createContainmentModel

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

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

Specified by:
createContainmentModel in interface ModelFactory
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.

Specified by:
createContainmentContext in interface ModelFactory
Parameters:
profile - a containment 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.

Specified by:
createContainmentModel in interface ModelFactory
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.

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


Copyright © Apache Software Foundation. All Rights Reserved.