Properly mark some singletons as such.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5156 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -22,6 +22,7 @@
|
|||||||
package com.threerings.crowd.peer.server;
|
package com.threerings.crowd.peer.server;
|
||||||
|
|
||||||
import com.google.inject.Inject;
|
import com.google.inject.Inject;
|
||||||
|
import com.google.inject.Singleton;
|
||||||
|
|
||||||
import com.threerings.util.Name;
|
import com.threerings.util.Name;
|
||||||
|
|
||||||
@@ -49,6 +50,7 @@ import com.threerings.crowd.peer.data.CrowdPeerMarshaller;
|
|||||||
/**
|
/**
|
||||||
* Extends the standard peer manager and bridges certain Crowd services.
|
* Extends the standard peer manager and bridges certain Crowd services.
|
||||||
*/
|
*/
|
||||||
|
@Singleton
|
||||||
public class CrowdPeerManager extends PeerManager
|
public class CrowdPeerManager extends PeerManager
|
||||||
implements CrowdPeerProvider, ChatProvider.ChatForwarder
|
implements CrowdPeerProvider, ChatProvider.ChatForwarder
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -24,6 +24,7 @@ package com.threerings.presents.server;
|
|||||||
import java.util.Iterator;
|
import java.util.Iterator;
|
||||||
|
|
||||||
import com.google.inject.Inject;
|
import com.google.inject.Inject;
|
||||||
|
import com.google.inject.Singleton;
|
||||||
|
|
||||||
import com.samskivert.util.Invoker;
|
import com.samskivert.util.Invoker;
|
||||||
import com.samskivert.util.StringUtil;
|
import com.samskivert.util.StringUtil;
|
||||||
@@ -33,6 +34,7 @@ import static com.threerings.presents.Log.log;
|
|||||||
/**
|
/**
|
||||||
* Extends the generic {@link Invoker} and integrates it a bit more into the Presents system.
|
* Extends the generic {@link Invoker} and integrates it a bit more into the Presents system.
|
||||||
*/
|
*/
|
||||||
|
@Singleton
|
||||||
public class PresentsInvoker extends Invoker
|
public class PresentsInvoker extends Invoker
|
||||||
implements ShutdownManager.Shutdowner, ReportManager.Reporter
|
implements ShutdownManager.Shutdowner, ReportManager.Reporter
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -28,6 +28,7 @@ import com.google.common.collect.Lists;
|
|||||||
import com.google.inject.Guice;
|
import com.google.inject.Guice;
|
||||||
import com.google.inject.Inject;
|
import com.google.inject.Inject;
|
||||||
import com.google.inject.Injector;
|
import com.google.inject.Injector;
|
||||||
|
import com.google.inject.Singleton;
|
||||||
|
|
||||||
import com.threerings.bureau.data.AgentObject;
|
import com.threerings.bureau.data.AgentObject;
|
||||||
|
|
||||||
@@ -42,6 +43,7 @@ import static com.threerings.bureau.Log.log;
|
|||||||
* TODO: add more types of testing
|
* TODO: add more types of testing
|
||||||
* TODO: allow a quitAfter configuration parameter to shut down automatically
|
* TODO: allow a quitAfter configuration parameter to shut down automatically
|
||||||
*/
|
*/
|
||||||
|
@Singleton
|
||||||
public class RegistryTester
|
public class RegistryTester
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user