From e517ba314ebb5b27eb9217a2a4af5be8c6d7b7be Mon Sep 17 00:00:00 2001 From: Michael Bayne Date: Thu, 25 Sep 2008 00:10:50 +0000 Subject: [PATCH] Make this guy injectable as well. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5391 542714f4-19e9-0310-aa3c-eee0fc999fb1 --- .../com/threerings/admin/server/DatabaseConfigRegistry.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/java/com/threerings/admin/server/DatabaseConfigRegistry.java b/src/java/com/threerings/admin/server/DatabaseConfigRegistry.java index b5a3d0dc2..ae518f356 100644 --- a/src/java/com/threerings/admin/server/DatabaseConfigRegistry.java +++ b/src/java/com/threerings/admin/server/DatabaseConfigRegistry.java @@ -23,6 +23,7 @@ package com.threerings.admin.server; import java.util.HashMap; +import com.google.inject.Inject; import com.google.inject.Singleton; import com.samskivert.jdbc.WriteOnlyUnit; @@ -31,6 +32,7 @@ import com.samskivert.jdbc.depot.PersistenceContext; import com.samskivert.util.Invoker; import com.samskivert.util.StringUtil; +import com.threerings.presents.annotation.MainInvoker; import com.threerings.presents.dobj.DObject; import com.threerings.admin.server.persist.ConfigRepository; @@ -54,7 +56,7 @@ public class DatabaseConfigRegistry extends ConfigRegistry * @param invoker this will be used to perform all database activity (except first time * initialization) so as to avoid blocking the distributed object thread. */ - public DatabaseConfigRegistry (PersistenceContext ctx, Invoker invoker) + @Inject public DatabaseConfigRegistry (PersistenceContext ctx, @MainInvoker Invoker invoker) { this(ctx, invoker, false); }