org.ow2.jonas.security.lib
Class JResourceManager

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

public class JResourceManager
extends Object

Parse config file

Author:
Guillaume Sauthier

Field Summary
protected static String CONFIG_FILE_DTD
          DTD of the realm configuration file.
protected static String DTD_RESOURCE
          Resource for the DTD.
 
Method Summary
 void addResources(JResources res, Reader reader, 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()
           
 boolean hasJmxService()
           
 void setDomainName(String domain)
          Set the domain name
 void setJmxService(JmxService jmx)
          Set the jmx service reference
 
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 String CONFIG_FILE_DTD
DTD of the realm configuration file.

See Also:
Constant Field Values

DTD_RESOURCE

protected static final String DTD_RESOURCE
Resource for the DTD.

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,
                         Reader reader,
                         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

setDomainName

public void setDomainName(String domain)
Set the domain name

Parameters:
domain - the domain name

setJmxService

public void setJmxService(JmxService jmx)
Set the jmx service reference

Parameters:
jmxService - the jmx service reference

hasJmxService

public boolean hasJmxService()


Copyright © 2010 OW2 Consortium. All Rights Reserved.