Open ArberBajraktari opened 1 year ago
[x] Klasse .services.impl.ParcelServiceImpl erstellen; @Service Annotation
[x] BL-Methoden, z.B. submitNewParcel(…), erstellen.
[x] Refacturing: Extract Interface --> Interface .services.ParcelService erstellen
[x] Im controller.rest.ParcelApiController --> neues Field parcelService
[x] Einen parametrisierten CTOR anlegen, wo parcelService übergeben wird; @Autowired Annotation
[ ] In den Controller-Methoden den parcelService verwenden.
Why ParcelService and not ParcelServiceImpl. The former is just an interface and the latter is the implementation.
[x] Klasse .services.impl.ParcelServiceImpl erstellen; @Service Annotation
[x] BL-Methoden, z.B. submitNewParcel(…), erstellen.
[x] Refacturing: Extract Interface --> Interface .services.ParcelService erstellen
[x] Im controller.rest.ParcelApiController --> neues Field parcelService
[x] Einen parametrisierten CTOR anlegen, wo parcelService übergeben wird; @Autowired Annotation
[ ] In den Controller-Methoden den parcelService verwenden.