co.uk.hjcs.canyon.config
Class ConfigParser

java.lang.Object
  extended by co.uk.hjcs.canyon.config.ConfigParser

public class ConfigParser
extends java.lang.Object

The ConfigParser parses the canyon.cfg.xml files and triggers the parsing of the mapping files. The result is the SessionConfig objects required by the SessionFactory to create the Sessions.

Author:
HJC Solutions Ltd (http://canyon.hjcsolutions.co.uk)

Method Summary
static ConfigParser getCanyonConfigParser(java.lang.String configName)
           
 java.lang.String getConfigResourceName()
           
 SessionConfig getSessionConfig(java.lang.String sessionName)
          Get the configuratio for the named session
 java.util.Collection<SessionConfig> getSessionConfigs()
          A collection of all the registered configuration objects
 boolean isServiceAvailable()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getCanyonConfigParser

public static final ConfigParser getCanyonConfigParser(java.lang.String configName)
Parameters:
configName - - the name of the resource to use to obtain the configuration details
Returns:
- a parser for the supplied resource

getConfigResourceName

public java.lang.String getConfigResourceName()

isServiceAvailable

public final boolean isServiceAvailable()

getSessionConfig

public SessionConfig getSessionConfig(java.lang.String sessionName)
Get the configuratio for the named session

Parameters:
sessionName -
Returns:
- the configuration for the named session

getSessionConfigs

public java.util.Collection<SessionConfig> getSessionConfigs()
A collection of all the registered configuration objects

Returns:
- A collection of all the registered configuration objects