February 2018
Intermediate to advanced
552 pages
13h 46m
English
In the next step, we need to mix the ConductRApplicationComponents trait into all our Reactive System's Loaders.
Mix it to wf-consumer-impl microservices' Loader, as shown here:
class WFConsumerLoader extends LagomApplicationLoader { override def load(context: LagomApplicationContext): LagomApplication = new WFConsumerApplication(context) with ConductRApplicationComponents override defloadDevMode(context: LagomApplicationContext): LagomApplication = new WFConsumerApplication(context) with LagomDevModeComponents override defdescribeServices = List(readDescriptor[WFConsumerService]) }
Here, we have mixed this ConductR trait with our Consumer Application, as shown here:
new WFConsumerApplication(context) ...
Read now
Unlock full access