~mchaten/gg/main

« back to all changes in this revision

Viewing changes to main/server/src/net/sf/goodgame/server/game/GameType.java

  • Committer: mchaten
  • Date: 2009-04-26 01:11:13 UTC
  • Revision ID: mchaten@gmail.com-20090426011113-9tokb9mwb0dokb02
Change the getGameType method that created a new game type to createGameType
Clean up the database code a little.
Create an EntityManagerFactory for each game type that has a persistence unit defined.

Show diffs side-by-side

added added

removed removed

Lines of Context:
105
105
        return gameTypeList.getGameType(id);
106
106
    }
107
107
 
108
 
    public static GameType getGameType(String serverJarNames, String serverClassName, String clientJarName, String clientClassName) throws MalformedURLException, ClassNotFoundException, InstantiationException, IllegalAccessException {
 
108
    public static GameType createGameType(String serverJarNames, String serverClassName, String clientJarName, String clientClassName) throws MalformedURLException, ClassNotFoundException, InstantiationException, IllegalAccessException {
109
109
        String codeBase = new File(".").toURI().toURL().toString();
110
110
        String[] jarNames = Util.split(serverJarNames, ',');
111
111
        URL[] urls = new URL[jarNames.length];