Excerpt |
---|
|
Service Methods for Backend Calls |
Panel |
---|
|
Table of Contents |
---|
indent | 2em |
---|
style | none |
---|
type | list |
---|
separator | pipe |
---|
|
|
Overview
There is normally only one service class per app. The service class' job is to get data from the back end and perform some biz logic on it and return it to the front end (actions). There should be one service interface and one class that implements it, e.g. OasSkeletonService, and OasSkeletonServiceImpl. This allows us an easy method to swap the SAP implementation with a Mock implementation for testing purposes. See the applicationContext.xml for information on how to do this swapping.
...