org.openpermis.editor.policy.configuration
Class ConfigurationGenericSection
java.lang.Object
org.openpermis.editor.policy.configuration.ConfigurationElement
org.openpermis.editor.policy.configuration.ConfigurationSection
org.openpermis.editor.policy.configuration.ConfigurationGenericSection
public class ConfigurationGenericSection
- extends ConfigurationSection
Describes a section in the configuration file.
Section that contains configuration elements that get added with their implementation
classes and a configurable caching strategy of the pico container.
- Since:
- 0.9.0
Constructor Summary |
ConfigurationGenericSection(org.dom4j.Element element,
boolean caching)
Creates a new section element for the specified parameters. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConfigurationGenericSection
public ConfigurationGenericSection(org.dom4j.Element element,
boolean caching)
- Creates a new section element for the specified parameters.
- Parameters:
element
- the underlying DOM element.caching
- true
if component implementations listed in this section are cached,
false
if caching is disabled.- Since:
- 0.9.0
addComponents
public void addComponents(ConfigurationSectionFactory factory,
ClassSettings settings,
org.picocontainer.MutablePicoContainer pico,
ClassLoader classLoader)
throws ConfigurationException
- Description copied from class:
ConfigurationSection
- Adds the component implementations listed in this section to the container specified.
- Specified by:
addComponents
in class ConfigurationSection
- Parameters:
factory
- the factory to create new configuration sections if required.settings
- object to store additional type based settings to.pico
- the pico container to add components to, must not be null
.classLoader
- the class loader to use, must not be null
.
- Throws:
ConfigurationException
- passed on.- Since:
- 0.9.0
addChild
protected void addChild(ClassSettings settings,
org.picocontainer.MutablePicoContainer pico,
ClassLoader classLoader,
ConfigurationChild child)
throws ConfigurationException
- Description copied from class:
ConfigurationSection
- Processes a single child element of this section.
The default implementation does nothing.
Called by ConfigurationSection.addChildren(org.openpermis.editor.policy.configuration.ClassSettings, org.picocontainer.MutablePicoContainer, java.lang.ClassLoader)
.
- Overrides:
addChild
in class ConfigurationSection
- Parameters:
settings
- object to store additional type based settings to.pico
- the pico container to add components to, must not be null
.classLoader
- the class loader to use, must not be null
.child
- the child to process.
- 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