Class ServerModule
- java.lang.Object
-
- org.curioswitch.common.server.framework.ServerModule
-
@Module(includes={ApplicationModule.class,FirebaseAuthModule.class,org.curioswitch.curiostack.gcloud.core.auth.GcloudAuthModule.class,org.curioswitch.curiostack.gcloud.iam.GcloudIamModule.class,MonitoringModule.class,JwtModule.class,LoggingModule.class,SecurityModule.class}) public abstract class ServerModule extends java.lang.ObjectAModulewhich bootstraps a server, finding and registering GRPC services to expose. All servers should include thisModulefrom an application-specificModulethat binds services to be exposed toBindableServiceand add it to aComponentwhich returns the initializedServer.For example,
{@literal @}Module(includes = ServerModule.class) abstract class MyAppServerModule { {@literal @}Bind @IntoSet abstract BindableService myAppService(AppService service); } {@literal @}Component(modules = MyAppServerModule.class) interface MyAppComponent { Server server(); }
-
-
Constructor Summary
Constructors Constructor Description ServerModule()
-