Make the StatRepository injectable.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@617 c613c5cb-e716-0410-b11b-feb51c14d237
This commit is contained in:
@@ -12,6 +12,9 @@ import java.util.HashMap;
|
|||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
import java.util.logging.Level;
|
import java.util.logging.Level;
|
||||||
|
|
||||||
|
import com.google.inject.Singleton;
|
||||||
|
import com.google.inject.Inject;
|
||||||
|
|
||||||
import com.samskivert.io.ByteArrayOutInputStream;
|
import com.samskivert.io.ByteArrayOutInputStream;
|
||||||
import com.samskivert.io.PersistenceException;
|
import com.samskivert.io.PersistenceException;
|
||||||
import com.samskivert.util.HashIntMap;
|
import com.samskivert.util.HashIntMap;
|
||||||
@@ -38,13 +41,14 @@ import static com.threerings.stats.Log.log;
|
|||||||
/**
|
/**
|
||||||
* Responsible for the persistent storage of per-player statistics.
|
* Responsible for the persistent storage of per-player statistics.
|
||||||
*/
|
*/
|
||||||
|
@Singleton
|
||||||
public class StatRepository extends DepotRepository
|
public class StatRepository extends DepotRepository
|
||||||
implements Stat.AuxDataSource
|
implements Stat.AuxDataSource
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Constructs a new statistics repository with the specified persistence context.
|
* Constructs a new statistics repository with the specified persistence context.
|
||||||
*/
|
*/
|
||||||
public StatRepository (PersistenceContext context)
|
@Inject public StatRepository (PersistenceContext context)
|
||||||
throws PersistenceException
|
throws PersistenceException
|
||||||
{
|
{
|
||||||
super(context);
|
super(context);
|
||||||
|
|||||||
Reference in New Issue
Block a user