Merge the ServerInvoker stuff into PresentsInvoker because the PresentsInvoker
is only ever used by the PresentsServer. Also determined that we need to explicitly let Guice know that CrowdServer provides the PresentsServer "interface" and so on down the line. I also think that each concrete class needs to be marked as @Singleton though I need to confirm that. Based on how annotations work, that's how it would be easiest to implement, so we'll assume they're not doing extra work on the backend to make our life easier. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5154 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -25,6 +25,7 @@ import java.util.Iterator;
|
||||
|
||||
import com.google.inject.Guice;
|
||||
import com.google.inject.Injector;
|
||||
import com.google.inject.Singleton;
|
||||
|
||||
import com.threerings.util.Name;
|
||||
|
||||
@@ -45,6 +46,7 @@ import static com.threerings.crowd.Log.log;
|
||||
* The crowd server extends the presents server by configuring it to use the
|
||||
* extensions provided by the crowd layer to support crowd services.
|
||||
*/
|
||||
@Singleton
|
||||
public class CrowdServer extends PresentsServer
|
||||
{
|
||||
/** Configures dependencies needed by the Crowd services. */
|
||||
@@ -52,7 +54,7 @@ public class CrowdServer extends PresentsServer
|
||||
{
|
||||
@Override protected void configure () {
|
||||
super.configure();
|
||||
// nada
|
||||
bind(PresentsServer.class).to(CrowdServer.class);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user