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

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

public class DefaultContextModel
extends AbstractLogEnabled
implements ContextModel

Specification of a context model from which a a fully qualifed context can be established.

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

Field Summary
static Class DEFAULT_CONTEXT_CLASS
          The default context implementation class to be used if no context class is defined.
 
Fields inherited from interface org.apache.avalon.composition.model.ContextModel
DEFAULT_STRATEGY_CLASSNAME
 
Constructor Summary
DefaultContextModel(Logger logger, ContextDescriptor descriptor, ContextDirective directive, DeploymentContext context)
          Default implementation of the context model.
 
Method Summary
 Context getContext()
          Return the context objct established for the component.
 Class getStrategyClass()
          Return the class representing the contextualization stage interface.
 
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
 

Field Detail

DEFAULT_CONTEXT_CLASS

public static final Class DEFAULT_CONTEXT_CLASS
The default context implementation class to be used if no context class is defined.

Constructor Detail

DefaultContextModel

public DefaultContextModel(Logger logger,
                           ContextDescriptor descriptor,
                           ContextDirective directive,
                           DeploymentContext context)
                    throws ModelException

Default implementation of the context model. The implementation takes an inital system context as the base for context value establishment and uses this to set standard context entries.

Parameters:
logger - the logging channel
descriptor - the contextualization stage descriptor
directive - the contextualization directive
context - the deployment context
Method Detail

getStrategyClass

public Class getStrategyClass()
Return the class representing the contextualization stage interface.

Specified by:
getStrategyClass in interface ContextModel
Returns:
the class representing the contextualization interface

getContext

public Context getContext()
Return the context objct established for the component.

Specified by:
getContext in interface ContextModel
Returns:
the context object


Copyright © Apache Software Foundation. All Rights Reserved.