uk.ltd.getahead.dwr.impl
Class DefaultConfiguration

java.lang.Object
  extended byuk.ltd.getahead.dwr.impl.DefaultConfiguration
All Implemented Interfaces:
Configuration

public class DefaultConfiguration
extends java.lang.Object
implements Configuration

The DefaultConfiguration class has responsibility for reading all config data from web.xml and dwr.xml

Author:
Joe Walker [joe at getahead dot ltd dot uk]

Constructor Summary
DefaultConfiguration()
           
 
Method Summary
 void addConfig(org.w3c.dom.Document doc)
          Add to the current configuration by reading a DOM tree directly
 void addConfig(java.io.InputStream in)
          Add to the current configuration by reading a DOM tree from a IO stream.
 AccessControl getAccessControl()
          Accessor for the security manager
 ConverterManager getConverterManager()
          Accessor for the DefaultConverterManager that we configure
 CreatorManager getCreatorManager()
          Accessor for the DefaultCreatorManager that we configure
 void setAccessControl(AccessControl accessControl)
          Accessor for the security manager
 void setConverterManager(ConverterManager converterManager)
          Accessor for the DefaultCreatorManager that we configure
 void setCreatorManager(CreatorManager creatorManager)
          Accessor for the DefaultCreatorManager that we configure
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultConfiguration

public DefaultConfiguration()
Method Detail

addConfig

public void addConfig(java.io.InputStream in)
               throws javax.xml.parsers.ParserConfigurationException,
                      java.io.IOException,
                      org.xml.sax.SAXException
Description copied from interface: Configuration
Add to the current configuration by reading a DOM tree from a IO stream.

Specified by:
addConfig in interface Configuration
Parameters:
in - The InputStream to parse from
Throws:
java.io.IOException - Error parsing dwr.xml
javax.xml.parsers.ParserConfigurationException - If there are XML setup problems
org.xml.sax.SAXException - Error parsing dwr.xml

addConfig

public void addConfig(org.w3c.dom.Document doc)
Description copied from interface: Configuration
Add to the current configuration by reading a DOM tree directly

Specified by:
addConfig in interface Configuration
Parameters:
doc - The DOM tree

setCreatorManager

public void setCreatorManager(CreatorManager creatorManager)
Accessor for the DefaultCreatorManager that we configure

Parameters:
creatorManager - The new DefaultConverterManager

getCreatorManager

public CreatorManager getCreatorManager()
Accessor for the DefaultCreatorManager that we configure

Returns:
the configured DefaultCreatorManager

setConverterManager

public void setConverterManager(ConverterManager converterManager)
Accessor for the DefaultCreatorManager that we configure

Parameters:
converterManager - The new DefaultConverterManager

getConverterManager

public ConverterManager getConverterManager()
Accessor for the DefaultConverterManager that we configure

Returns:
the configured DefaultConverterManager

getAccessControl

public AccessControl getAccessControl()
Accessor for the security manager

Returns:
Returns the accessControl.

setAccessControl

public void setAccessControl(AccessControl accessControl)
Accessor for the security manager

Parameters:
accessControl - The accessControl to set.

Copyright ? 2005