MartinoMensio / DP2-Labs

Distributed Programming 2 Laboratories @ Polytechnic University of Turin
MIT License
1 stars 0 forks source link

Assignment 3 Service vs Resource #24

Closed MartinoMensio closed 7 years ago

MartinoMensio commented 7 years ago

Split the jobs and responsibilities between the Service and the Resource class

MartinoMensio commented 7 years ago

All the methods in Resource call something in Service, that manages all the data. Resource only checks some conditions to throw appropriate exceptions and builds Response objects