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.Object
AModule
which bootstraps a server, finding and registering GRPC services to expose. All servers should include thisModule
from an application-specificModule
that binds services to be exposed toBindableService
and add it to aComponent
which 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()
-