|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openpermis.editor.policy.configuration.ConfigurationElement
org.openpermis.editor.policy.configuration.ConfigurationChild
public class ConfigurationChild
Configuration child element.
Field Summary | |
---|---|
protected static String |
CONFIGURATION_KEY
Attribute key constant for the configuration key. |
protected static String |
IMPLEMENTATION_CLASS
Attribute key constant for the implementation class. |
protected static String |
IMPLEMENTATION_TYPE
Attribute key constant for the implementation type. |
Constructor Summary | |
---|---|
ConfigurationChild(org.dom4j.Element element)
Creates a new configuration element for the specified DOM element. |
Method Summary | |
---|---|
void |
addSettings(ClassSettings settings,
ClassLoader classLoader)
Adds the implementation class specific settings of this child element. |
String |
getConfigurationKey()
Returns the configuration key for child element. |
TypeKey |
getConfigurationKey(Class<?> scope,
ClassLoader classLoader)
Returns the configuration key for the specified scope. |
Class<?> |
getImplementationClass(ClassLoader classLoader)
Returns the implementation class value. |
Class<?> |
getImplementationType(ClassLoader classLoader)
Returns the implementation type value as class. |
Methods inherited from class org.openpermis.editor.policy.configuration.ConfigurationElement |
---|
attributeValue, getElement, getParentValue, getPath, getValue |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final String CONFIGURATION_KEY
"key"
protected static final String IMPLEMENTATION_TYPE
"type"
protected static final String IMPLEMENTATION_CLASS
"class"
Constructor Detail |
---|
public ConfigurationChild(org.dom4j.Element element)
element
- the DOM element of this configuration element.Method Detail |
---|
public Class<?> getImplementationType(ClassLoader classLoader) throws ConfigurationException
classLoader
- the class loader to use.
null
if undefined.
ConfigurationException
- if the class cannot be loaded.public String getConfigurationKey()
Use this method only if the child element is not scoped.
null
if undefined.public TypeKey getConfigurationKey(Class<?> scope, ClassLoader classLoader) throws ConfigurationException
scope
- the scope class for the configuration key, must not be null
.classLoader
- the class loader to use to check the implementation type,
must not be null
otherwise.
null
.
ConfigurationException
- if the element does not have a valid implementation type.public Class<?> getImplementationClass(ClassLoader classLoader) throws ConfigurationException
classLoader
- the class loader to use, must not be null
.
null
if undefined.
ConfigurationException
- if the class cannot be loaded.public void addSettings(ClassSettings settings, ClassLoader classLoader) throws ConfigurationException
settings
- the settings to add the configuration to.classLoader
- the class loader to use, must not be null
.
ConfigurationException
- if the implementation class cannot be loaded.
|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
OpenPermis Role Based Access Control 0.9.0 (Build 16)
2009/08/13 07:17:21
Copyright (c) 2002-2007 Ergon Informatik AG