synergynetframework.appsystem.table.appregistry
Class ApplicationRegistryXMLReader

java.lang.Object
  extended by synergynetframework.appsystem.table.appregistry.ApplicationRegistryXMLReader

public class ApplicationRegistryXMLReader
extends java.lang.Object

The Class ApplicationRegistryXMLReader.


Constructor Summary
ApplicationRegistryXMLReader()
           
 
Method Summary
static ApplicationInfo getClientApplication(javax.xml.xpath.XPath path, org.w3c.dom.Document document)
          Gets the client application.
static ApplicationInfo getProjectorApplication(javax.xml.xpath.XPath path, org.w3c.dom.Document document)
          Gets the projector application.
static void loadFromConfiguration(java.io.InputStream configXMLInputStream, ApplicationRegistry registry)
          Load from configuration.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ApplicationRegistryXMLReader

public ApplicationRegistryXMLReader()
Method Detail

getClientApplication

public static ApplicationInfo getClientApplication(javax.xml.xpath.XPath path,
                                                   org.w3c.dom.Document document)
                                            throws javax.xml.xpath.XPathExpressionException,
                                                   org.w3c.dom.DOMException,
                                                   java.lang.ClassNotFoundException
Gets the client application.

Parameters:
path - the path
document - the document
Returns:
the client application
Throws:
javax.xml.xpath.XPathExpressionException - the x path expression exception
org.w3c.dom.DOMException - the DOM exception
java.lang.ClassNotFoundException - the class not found exception

getProjectorApplication

public static ApplicationInfo getProjectorApplication(javax.xml.xpath.XPath path,
                                                      org.w3c.dom.Document document)
                                               throws javax.xml.xpath.XPathExpressionException,
                                                      org.w3c.dom.DOMException,
                                                      java.lang.ClassNotFoundException
Gets the projector application.

Parameters:
path - the path
document - the document
Returns:
the projector application
Throws:
javax.xml.xpath.XPathExpressionException - the x path expression exception
org.w3c.dom.DOMException - the DOM exception
java.lang.ClassNotFoundException - the class not found exception

loadFromConfiguration

public static void loadFromConfiguration(java.io.InputStream configXMLInputStream,
                                         ApplicationRegistry registry)
                                  throws org.xml.sax.SAXException,
                                         java.io.IOException,
                                         javax.xml.parsers.ParserConfigurationException,
                                         java.lang.InstantiationException,
                                         java.lang.IllegalAccessException,
                                         java.lang.ClassNotFoundException,
                                         javax.xml.xpath.XPathExpressionException
Load from configuration.

Parameters:
configXMLInputStream - the config xml input stream
registry - the registry
Throws:
org.xml.sax.SAXException - the SAX exception
java.io.IOException - Signals that an I/O exception has occurred.
javax.xml.parsers.ParserConfigurationException - the parser configuration exception
java.lang.InstantiationException - the instantiation exception
java.lang.IllegalAccessException - the illegal access exception
java.lang.ClassNotFoundException - the class not found exception
javax.xml.xpath.XPathExpressionException - the x path expression exception