org.apache.excalibur.configuration
Class ContextFactory

java.lang.Object
  extended byorg.apache.excalibur.configuration.ContextFactory

public class ContextFactory
extends Object

ContextFactory is a utility class that provides support for the creation context instances based on a XML context desciption.

Version:
$Id: ContextFactory.java,v 1.7 2003/02/25 16:28:35 bloritsch Exp $
Author:
Stephen McConnell

Constructor Summary
ContextFactory()
           
 
Method Summary
static Context createContextFromConfiguration(Configuration config)
          Create context-attributes from entrys within <context/>-tag in config
static Context createContextFromConfiguration(Context parent, Configuration config)
          Create context-attributes from entrys within <context/>-tag in config
static Context createContextFromConfiguration(Context parent, Configuration config, Logger log)
          Create context-attributes from entrys within <context/>-tag in config
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContextFactory

public ContextFactory()
Method Detail

createContextFromConfiguration

public static Context createContextFromConfiguration(Configuration config)
                                              throws ConfigurationException
Create context-attributes from entrys within <context/>-tag in config

Parameters:
config - the context configuration
Returns:
Context a context instance
Throws:
ConfigurationException - if a context related error occurs

createContextFromConfiguration

public static Context createContextFromConfiguration(Context parent,
                                                     Configuration config)
                                              throws ConfigurationException
Create context-attributes from entrys within <context/>-tag in config

Parameters:
parent - the parent context
config - the configuration element describing the context parameters
Returns:
Context a context instance
Throws:
ConfigurationException - if a context related error occurs

createContextFromConfiguration

public static Context createContextFromConfiguration(Context parent,
                                                     Configuration config,
                                                     Logger log)
                                              throws ConfigurationException
Create context-attributes from entrys within <context/>-tag in config

Parameters:
parent - the parent context
config - the configuration element describing the context parameters
log - a logging channel
Returns:
Context a context instance
Throws:
ConfigurationException - if a context related error occurs


Copyright © 2002-2003 Apache Software Foundation. All Rights Reserved.