net.datacrow.core.services
Class Servers

java.lang.Object
  extended by net.datacrow.core.services.Servers

public class Servers
extends java.lang.Object

This class is used to register all the found servers in the services folder. The ServiceClassLoader is used to located these servers.

Author:
Robert Jan van der Waals

Constructor Summary
Servers()
          Creates this class and starts the search for the servers.
 
Method Summary
static Servers getInstance()
          Returns an instance of this class.
 java.util.Collection<IServer> getServers(int module)
          Retrieves all the servers for the given module.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Servers

public Servers()
Creates this class and starts the search for the servers.

Method Detail

getServers

public java.util.Collection<IServer> getServers(int module)
Retrieves all the servers for the given module.

Parameters:
module -

getInstance

public static Servers getInstance()
Returns an instance of this class.