We've made several enhancements to the address book application to make use of some platform APIs and learnt some lessons on how to find and use platform modules, as well as how to handle some tricky scenarios that showed up along the way. Here's what we have done so far:
- We used the
java.logging
module to add logging functionality to thepackt.addressbook
module. - We used the
java.xml
module and created a new custom module that reads and parses an XML file to return a list of model objects. - We encountered two problems--shared code and dependency leakage and we implemented a strategy to get around those problems.
- We used the JavaFX modules to build a UI for the address book. We created a new module that leveraged our existing contact and sort modules to build this UI. We learnt about the impact of modularity on reflection. We got around the problem by just exporting the class that needed access by the framework, although we'll be learning a better way to do this in the next chapter.
One...