Allow the RatingRepository to be injected.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@616 c613c5cb-e716-0410-b11b-feb51c14d237
This commit is contained in:
@@ -28,6 +28,9 @@ import java.util.Collections;
|
|||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
|
|
||||||
|
import com.google.inject.Singleton;
|
||||||
|
import com.google.inject.Inject;
|
||||||
|
|
||||||
import com.samskivert.io.PersistenceException;
|
import com.samskivert.io.PersistenceException;
|
||||||
import com.samskivert.util.HashIntMap;
|
import com.samskivert.util.HashIntMap;
|
||||||
import com.samskivert.util.IntMap;
|
import com.samskivert.util.IntMap;
|
||||||
@@ -50,12 +53,13 @@ import com.threerings.parlor.rating.util.Percentiler;
|
|||||||
/**
|
/**
|
||||||
* Handles the persistent storage of per-user per-game ratings.
|
* Handles the persistent storage of per-user per-game ratings.
|
||||||
*/
|
*/
|
||||||
|
@Singleton
|
||||||
public class RatingRepository extends DepotRepository
|
public class RatingRepository extends DepotRepository
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Initialize the {@link RatingRepository}.
|
* Initialize the {@link RatingRepository}.
|
||||||
*/
|
*/
|
||||||
public RatingRepository (PersistenceContext ctx)
|
@Inject public RatingRepository (PersistenceContext ctx)
|
||||||
{
|
{
|
||||||
super(ctx);
|
super(ctx);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user