The service implementation is the next logical step after defining the service interface. With the implementation part, the code gets its business logic that enables it to perform successful operations. This recipe explains how to prepare a service implementation out of a service interface. By completing this implementation, we will be ready to define a web service.
In this recipe, we will add the implementation
class to the JDeveloper project based on the interface defined in the Defining the service interface recipe.
Following are the steps involved in preparing a service implementation:
At the root of the JDeveloper project, right-click and select the New... option. In the New Gallery window, select the Java Class artifact as shown in the following screenshot:
Click on the OK button. The Create Java Class window opens. Enter the Name and Package fields and add the
BookLibrary
interface under the Implements section. Then, click...