org.objectweb.jonas.security.lib
Class JResourceManager

java.lang.Object
  extended by org.objectweb.jonas.security.lib.JResourceManager

public class JResourceManager
extends java.lang.Object

Author:
Guillaume Sauthier

Field Summary
protected static java.lang.String CONFIG_FILE_DTD
          DTD of the realm configuration file
 
Method Summary
 void addResources(JResources res, java.io.Reader reader, java.lang.String xml)
          Add JResource(s) created from parsing of the reader contents inside the JResources given instance.
protected  org.apache.commons.digester.Digester createRealmDigester()
          Create and configure the Digester that will be used for the xml parsing of the JOnAS realm file.
static JResourceManager getInstance()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CONFIG_FILE_DTD

protected static final java.lang.String CONFIG_FILE_DTD
DTD of the realm configuration file

See Also:
Constant Field Values
Method Detail

getInstance

public static JResourceManager getInstance()
Returns:
returns the unique JResourceManager instance

createRealmDigester

protected org.apache.commons.digester.Digester createRealmDigester()
Create and configure the Digester that will be used for the xml parsing of the JOnAS realm file.

Returns:
Digester the digester containing the rules for the xml parsing of the JOnAS realm file (jonas-realm.xml)

addResources

public void addResources(JResources res,
                         java.io.Reader reader,
                         java.lang.String xml)
                  throws SecurityServiceException
Add JResource(s) created from parsing of the reader contents inside the JResources given instance.

Parameters:
res - JResources element where JResource will be addded.
reader - XML Content Reader
xml - filename / xml : used in Error messages
Throws:
SecurityServiceException - When parsing fails