synergynetframework.appsystem.services
Class ServiceManager

java.lang.Object
  extended by synergynetframework.appsystem.services.ServiceManager

public class ServiceManager
extends java.lang.Object

The Class ServiceManager.


Method Summary
 SynergyNetService get(java.lang.Class<? extends SynergyNetService> theClass)
          Gets the.
static ServiceManager getInstance()
          Gets the single instance of ServiceManager.
 void loadFromConfiguration(java.io.InputStream configXMLInputStream)
          Load from configuration.
 void shutdown()
          Shutdown.
 void unregister(java.lang.String classname)
          Unregister.
 void update()
          Update.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static ServiceManager getInstance()
Gets the single instance of ServiceManager.

Returns:
single instance of ServiceManager

get

public SynergyNetService get(java.lang.Class<? extends SynergyNetService> theClass)
                      throws CouldNotStartServiceException
Gets the.

Parameters:
theClass - the the class
Returns:
the synergy net service
Throws:
CouldNotStartServiceException - the could not start service exception

loadFromConfiguration

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

Parameters:
configXMLInputStream - the config xml input stream
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

shutdown

public void shutdown()
Shutdown.


unregister

public void unregister(java.lang.String classname)
Unregister.

Parameters:
classname - the classname

update

public void update()
Update.