More singleton marking.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5160 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -23,6 +23,8 @@ package com.threerings.admin.server;
|
||||
|
||||
import java.util.HashMap;
|
||||
|
||||
import com.google.inject.Singleton;
|
||||
|
||||
import com.samskivert.io.PersistenceException;
|
||||
import com.samskivert.jdbc.WriteOnlyUnit;
|
||||
import com.samskivert.jdbc.depot.PersistenceContext;
|
||||
@@ -42,6 +44,7 @@ import static com.threerings.admin.Log.log;
|
||||
* data from the database. This ensures that systems initialized after the config registry can
|
||||
* safely make use of configuration information.
|
||||
*/
|
||||
@Singleton
|
||||
public class DatabaseConfigRegistry extends ConfigRegistry
|
||||
{
|
||||
/**
|
||||
|
||||
@@ -23,6 +23,8 @@ package com.threerings.admin.server;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
||||
import com.google.inject.Singleton;
|
||||
|
||||
import com.samskivert.io.PersistenceException;
|
||||
import com.samskivert.jdbc.depot.PersistenceContext;
|
||||
import com.samskivert.util.Invoker;
|
||||
@@ -41,6 +43,7 @@ import static com.threerings.admin.Log.log;
|
||||
* A database backed config registry that registers with the peer system and synchronizes with its
|
||||
* peers when configuration fields are changed.
|
||||
*/
|
||||
@Singleton
|
||||
public class PeeredDatabaseConfigRegistry extends DatabaseConfigRegistry
|
||||
{
|
||||
public PeeredDatabaseConfigRegistry (PersistenceContext ctx, Invoker invoker,
|
||||
|
||||
@@ -21,13 +21,17 @@
|
||||
|
||||
package com.threerings.admin.server;
|
||||
|
||||
import com.google.inject.Singleton;
|
||||
|
||||
import com.samskivert.util.PrefsConfig;
|
||||
|
||||
import com.threerings.presents.dobj.DObject;
|
||||
|
||||
/**
|
||||
* Implements the {@link ConfigRegistry} using the Java preferences system as a persistent store
|
||||
* for the configuration information (see {@link Config} for more information on how that works).
|
||||
*/
|
||||
@Singleton
|
||||
public class PrefsConfigRegistry extends ConfigRegistry
|
||||
{
|
||||
@Override // from ConfigRegistry
|
||||
|
||||
Reference in New Issue
Block a user