[Cherbot-commit] SF.net SVN: cherbot: [100] trunk/src/net/sf/cherbot/CherBot.java
Status: Alpha
Brought to you by:
christianhujer
|
From: <chr...@us...> - 2007-06-25 19:18:51
|
Revision: 100
http://svn.sourceforge.net/cherbot/?rev=100&view=rev
Author: christianhujer
Date: 2007-06-25 12:18:47 -0700 (Mon, 25 Jun 2007)
Log Message:
-----------
Cosmetic: Renamed and moved field.
Modified Paths:
--------------
trunk/src/net/sf/cherbot/CherBot.java
Modified: trunk/src/net/sf/cherbot/CherBot.java
===================================================================
--- trunk/src/net/sf/cherbot/CherBot.java 2007-06-25 11:25:11 UTC (rev 99)
+++ trunk/src/net/sf/cherbot/CherBot.java 2007-06-25 19:18:47 UTC (rev 100)
@@ -30,6 +30,9 @@
/** The database URL. */
@NotNull private String databaseURL = DEFAULT_DATABASE_URL;
+ /** The JDBC connection for data persistence. */
+ @NotNull private Connection connection;
+
/** Create an instance of CherBot. */
public CherBot() {
modules.add(new ServerModule());
@@ -44,13 +47,10 @@
ArgParser.simpleParseAndRun(new CherBot(), args);
}
- /** The JDBC connection for data persistence. */
- @NotNull private Connection con;
-
/** {@inheritDoc} */
public int run(@NotNull final List<String> strings) throws Exception {
- con = DriverManager.getConnection(databaseURL);
- System.out.println(con);
+ connection = DriverManager.getConnection(databaseURL);
+ System.out.println(connection);
load();
return 0;
}
@@ -61,7 +61,7 @@
private void load() throws SQLException {
for (final Module module : modules) {
if (module instanceof PersistentModule) {
- ((PersistentModule) module).load(con);
+ ((PersistentModule) module).load(connection);
}
}
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|