I have an controller that call three services :
public class ProductController(){
private AccountService accountService;
private ProcessService processService;
private releaseService releaseService;
@RequestMapping("/process")
public Product process(@RequestParam(value="name", defaultValue="docs") ProductProcessed process) {
accountService.notify();
releaseService.sendRelease(process);
return processService.process(process);
}
}
What is the best approach to encapsulate this service calls??
Aucun commentaire:
Enregistrer un commentaire