org.openpermis.editor.policy.configuration
Class ConfigurationReader

java.lang.Object
  extended by org.openpermis.editor.policy.configuration.ConfigurationReader

public class ConfigurationReader
extends Object

Reader for XML configuration files.

The configuration file describes the plugins and implementation classes used at runtime. Portions define which presenters and view implentations to use for editing policy elements while other sections describe plugins and additional tools supported by the editor.

Since:
0.9.0

Constructor Summary
ConfigurationReader(ConfigurationSectionFactory factory, URL url)
          Creates a new configuration reader for the specified URL.
 
Method Summary
 void configure(ClassSettings settings, org.picocontainer.MutablePicoContainer pico)
          Configures the specified pico container according to the configuration.
 void configure(ClassSettings settings, org.picocontainer.MutablePicoContainer pico, ClassLoader classLoader)
          Configures the specified pico container according to the configuration.
protected  ConfigurationSection createSection(org.dom4j.Element element)
          Creates a configuration section for the specified element.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfigurationReader

public ConfigurationReader(ConfigurationSectionFactory factory,
                           URL url)
                    throws ConfigurationException
Creates a new configuration reader for the specified URL.

Parameters:
factory - the factory for configuration sections.
url - the URL to read the configuration from.
Throws:
ConfigurationException - in case the configuration cannot be read.
Since:
0.9.0
Method Detail

createSection

protected ConfigurationSection createSection(org.dom4j.Element element)
                                      throws ConfigurationException
Creates a configuration section for the specified element.

Parameters:
element - the element to create the section for, must not be null.
Returns:
the configuration section requested.
Throws:
ConfigurationException - if the factory cannot create a configuration section.
Since:
0.9.0

configure

public void configure(ClassSettings settings,
                      org.picocontainer.MutablePicoContainer pico)
               throws ConfigurationException
Configures the specified pico container according to the configuration.

Parameters:
settings - object to store additional type based settings to.
pico - the pico container to configure, must not be null.
Throws:
ConfigurationException - passed on.
Since:
0.9.0

configure

public void configure(ClassSettings settings,
                      org.picocontainer.MutablePicoContainer pico,
                      ClassLoader classLoader)
               throws ConfigurationException
Configures the specified pico container according to the configuration.

Parameters:
settings - object to store additional type based settings to.
pico - the pico container to configure, must not be null.
classLoader - the class loader to use, must not be null.
Throws:
ConfigurationException - passed on.
Since:
0.9.0


OpenPermis Role Based Access Control 0.9.0 (Build 16)
2009/08/13 07:17:21
Copyright (c) 2002-2007 Ergon Informatik AG