Testing
Class ServerFactory

java.lang.Object
  |
  +--Testing.ServerFactory
Direct Known Subclasses:
DemoServerFactory, EnterpriseServerFactory, PersonalServerFactory

public abstract class ServerFactory
extends java.lang.Object

Use of the pattern Abstract Factory to build the server which matchs with required parameters


Field Summary
protected  MtgServer.Server server
          The server to be build
 
Constructor Summary
ServerFactory()
           
 
Method Summary
 MtgServer.Server getServer(Testing.DummyInterface inter)
          Get the builded serve. this method should be called after calling every others to get a full configured server
abstract  void makeAvailablemeetings()
          Set the set of available meetings to the server to be build.
abstract  void makeLanguages()
          Initialize the ServerMessage singleton with available languages.
abstract  void makeTranslator()
          Builds or not the translator for the server.
 void ServerFactory()
          Initialize the server factory and the common features of the server.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

server

protected MtgServer.Server server
The server to be build

Constructor Detail

ServerFactory

public ServerFactory()
Method Detail

getServer

public MtgServer.Server getServer(Testing.DummyInterface inter)
Get the builded serve. this method should be called after calling every others to get a full configured server

Returns:
the builded server

makeAvailablemeetings

public abstract void makeAvailablemeetings()
Set the set of available meetings to the server to be build.


makeTranslator

public abstract void makeTranslator()
Builds or not the translator for the server.


makeLanguages

public abstract void makeLanguages()
Initialize the ServerMessage singleton with available languages.


ServerFactory

public void ServerFactory()
Initialize the server factory and the common features of the server.