org.apache.avalon.activation.impl
Class DefaultRuntimeFactory

java.lang.Object
  extended byorg.apache.avalon.activation.impl.DefaultRuntimeFactory
All Implemented Interfaces:
RuntimeFactory

public class DefaultRuntimeFactory
extends Object
implements RuntimeFactory

A factory enabling the establishment of runtime handlers.

Version:
$Revision: 1.6 $ $Date: 2004/03/17 10:30:07 $
Author:
Avalon Development Team

Constructor Summary
DefaultRuntimeFactory(SystemContext system)
           
 
Method Summary
 LifestyleFactory buildLifestyleFactory(InitialContext context, Class clazz)
          Build a lifestyle factory using a supplied class.
 Appliance getRuntime(DeploymentModel model)
          Resolve a runtime handler for a model.
protected  Appliance newComponentRuntime(ComponentModel model, LifestyleManager manager)
          Resolve a runtime handler for a component model.
protected  Appliance newContainmentRuntime(ContainmentModel model)
          Resolve a runtime handler for a containment model.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultRuntimeFactory

public DefaultRuntimeFactory(SystemContext system)
Method Detail

buildLifestyleFactory

public LifestyleFactory buildLifestyleFactory(InitialContext context,
                                              Class clazz)
                                       throws RuntimeFactoryException
Build a lifestyle factory using a supplied class.

Parameters:
clazz - the log target factory class
Returns:
a instance of the class
Throws:
RuntimeFactoryException - if the class does not expose a public constructor, or the constructor requires arguments that the builder cannot resolve, or if a unexpected instantiation error ooccurs

getRuntime

public Appliance getRuntime(DeploymentModel model)
Resolve a runtime handler for a model.

Specified by:
getRuntime in interface RuntimeFactory
Parameters:
model - the deployment model
Returns:
the runtime appliance

newComponentRuntime

protected Appliance newComponentRuntime(ComponentModel model,
                                        LifestyleManager manager)
Resolve a runtime handler for a component model.

Parameters:
model - the containment model
Returns:
the runtime handler

newContainmentRuntime

protected Appliance newContainmentRuntime(ContainmentModel model)
                                   throws ApplianceRuntimeException
Resolve a runtime handler for a containment model.

Parameters:
model - the containment model
Returns:
the runtime handler
Throws:
ApplianceRuntimeException


Copyright © The Apache Software Foundation. All Rights Reserved.