public interface ServiceClientGuiceSupport
| Modifier and Type | Method and Description |
|---|---|
default <T> void |
bindClient(Class<T> clientInterface)
Binds a client for
clientInterface which Guice's Injector makes available so
client classes may declare the dependency on their @Inject annotated constructor. |
default void |
bindServiceInfo(ServiceInfo serviceInfo)
Registers a
ServiceInfo for this application. |
default <T> void bindClient(Class<T> clientInterface)
clientInterface which Guice's Injector makes available so
client classes may declare the dependency on their @Inject annotated constructor.
Applications that want to consume Lagom services must provide a ServiceInfo. Using
bindClient(Class) requires providing a ServiceInfo
via bindServiceInfo(ServiceInfo).
default void bindServiceInfo(ServiceInfo serviceInfo)
ServiceInfo for this application. This step is required to interact with
Lagom services.
This method must be invoked exactly once.
serviceInfo - the metadata identifying this Lagom Service.