In this tutorial we start with basic Java classes, to simulate a very simple Library where you can borrow and return books.
Apache Zestâ„¢ relies heavily on the use of interfaces. This makes it possible for an object to externally implement a number of interfaces which internally is backed by a number of Mixins, some of which you may have written yourself, and some of which may have been reused. This is also true for services, which we are to cover in this tutorial.
The first task is therefore to refactor the code so that the methods are implemented from an interface instead, and to essentially make the identical "application" into a Zestâ„¢ application. We also want the Book to be a ValueComposite.
Steps for this tutorial:
ValueBuilderFactory
in the
@Structure
scope.