Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

marauroa.game
Class PlayerDatabaseFactory  view PlayerDatabaseFactory download PlayerDatabaseFactory.java

java.lang.Object
  extended bymarauroa.game.PlayerDatabaseFactory

public class PlayerDatabaseFactory
extends java.lang.Object

MessageFactory is the class that is in charge of creating the correct object for the database choosed in the configuration file.


Constructor Summary
PlayerDatabaseFactory()
           
 
Method Summary
static PlayerDatabase getDatabase()
          This method returns an instance of PlayerDatabase choosen using the Configuration file.
static PlayerDatabase getDatabase(java.lang.String database_type)
          This method returns an instance of PlayerDatabase choosen using the param.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PlayerDatabaseFactory

public PlayerDatabaseFactory()
Method Detail

getDatabase

public static PlayerDatabase getDatabase()
                                  throws PlayerDatabase.NoDatabaseConfException
This method returns an instance of PlayerDatabase choosen using the Configuration file.


getDatabase

public static PlayerDatabase getDatabase(java.lang.String database_type)
                                  throws PlayerDatabase.NoDatabaseConfException
This method returns an instance of PlayerDatabase choosen using the param.