Screw backwards compatibility. We're all about the future.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4786 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2007-07-26 20:49:13 +00:00
parent 81044c6512
commit 7a8bb7389a
5 changed files with 32 additions and 72 deletions
@@ -28,7 +28,7 @@ import java.util.List;
import java.util.logging.Level;
import com.samskivert.io.PersistenceException;
import com.samskivert.jdbc.ConnectionProvider;
import com.samskivert.jdbc.depot.PersistenceContext;
import com.samskivert.util.ArrayIntSet;
import com.samskivert.util.ChainedResultListener;
import com.samskivert.util.Interval;
@@ -132,11 +132,10 @@ public class PeerManager
* Creates a peer manager which will create a {@link NodeRepository} which will be used to
* publish our existence and discover the other nodes.
*/
public PeerManager (ConnectionProvider conprov, Invoker invoker)
throws PersistenceException
public PeerManager (PersistenceContext ctx, Invoker invoker)
{
_invoker = invoker;
_noderepo = new NodeRepository(conprov);
_noderepo = new NodeRepository(ctx);
}
/**
@@ -26,7 +26,6 @@ import java.util.List;
import java.util.Set;
import com.samskivert.io.PersistenceException;
import com.samskivert.jdbc.ConnectionProvider;
import com.samskivert.jdbc.depot.DepotRepository;
import com.samskivert.jdbc.depot.PersistenceContext;
import com.samskivert.jdbc.depot.PersistentRecord;
@@ -36,21 +35,6 @@ import com.samskivert.jdbc.depot.PersistentRecord;
*/
public class NodeRepository extends DepotRepository
{
/** The database identifier used when establishing a database connection. This value being
* <code>nodedb</code>. */
public static final String NODE_DB_IDENT = "nodedb";
/**
* Constructs a new repository with the specified connection provider.
*
* @param conprov the connection provider via which we will obtain our database connection.
*/
public NodeRepository (ConnectionProvider conprov)
throws PersistenceException
{
this(new PersistenceContext(NODE_DB_IDENT, conprov));
}
/**
* Constructs a new repository with the specified persistence context.
*/