Provide a PersistenceContext accepting constructor.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4785 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2007-07-26 20:41:09 +00:00
parent 839aaf05dd
commit 81044c6512
2 changed files with 19 additions and 4 deletions
@@ -40,13 +40,20 @@ public class ConfigRepository extends DepotRepository
public static final String CONFIG_DB_IDENT = "configdb";
/**
* Constructs a new config repository with the specified connection
* provider.
* Constructs a new config repository with the specified connection provider.
*/
public ConfigRepository (ConnectionProvider conprov)
throws PersistenceException
{
super(new PersistenceContext(CONFIG_DB_IDENT, conprov));
this(new PersistenceContext(CONFIG_DB_IDENT, conprov));
}
/**
* Constructs a new config repository with the specified persistence context.
*/
public ConfigRepository (PersistenceContext ctx)
{
super(ctx);
}
/**