Make this repository injectable.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5390 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -23,6 +23,7 @@ package com.threerings.admin.server;
|
|||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
|
||||||
|
import com.google.inject.Inject;
|
||||||
import com.google.inject.Singleton;
|
import com.google.inject.Singleton;
|
||||||
|
|
||||||
import com.samskivert.io.PersistenceException;
|
import com.samskivert.io.PersistenceException;
|
||||||
@@ -32,6 +33,7 @@ import com.samskivert.util.Invoker;
|
|||||||
import com.threerings.io.Streamable;
|
import com.threerings.io.Streamable;
|
||||||
import com.threerings.util.StreamableTuple;
|
import com.threerings.util.StreamableTuple;
|
||||||
|
|
||||||
|
import com.threerings.presents.annotation.MainInvoker;
|
||||||
import com.threerings.presents.dobj.AttributeChangedEvent;
|
import com.threerings.presents.dobj.AttributeChangedEvent;
|
||||||
import com.threerings.presents.dobj.DObject;
|
import com.threerings.presents.dobj.DObject;
|
||||||
import com.threerings.presents.peer.server.PeerManager;
|
import com.threerings.presents.peer.server.PeerManager;
|
||||||
@@ -45,9 +47,8 @@ import static com.threerings.admin.Log.log;
|
|||||||
@Singleton
|
@Singleton
|
||||||
public class PeeredDatabaseConfigRegistry extends DatabaseConfigRegistry
|
public class PeeredDatabaseConfigRegistry extends DatabaseConfigRegistry
|
||||||
{
|
{
|
||||||
public PeeredDatabaseConfigRegistry (PersistenceContext ctx, Invoker invoker,
|
@Inject public PeeredDatabaseConfigRegistry (
|
||||||
PeerManager peermgr)
|
PersistenceContext ctx, @MainInvoker Invoker invoker, PeerManager peermgr)
|
||||||
throws PersistenceException
|
|
||||||
{
|
{
|
||||||
super(ctx, invoker, "");
|
super(ctx, invoker, "");
|
||||||
_peermgr = peermgr;
|
_peermgr = peermgr;
|
||||||
|
|||||||
Reference in New Issue
Block a user