concept interface in category legacy software

appears as: n interface, interface, interfaces, interface, interfaces
Re-Engineering Legacy Software

This is an excerpt from Manning's book Re-Engineering Legacy Software.

Now that we have our business rules cleanly isolated from each other, the next step of our plan is to move the caching and logging code into decorators. First let’s extract an interface from the BannerAdChooser class. Each of our decorators will implement this interface.

We’ll use the name BannerAdChooser for the interface and rename the concrete class to BannerAdChooserImpl. (This is a horrible name, but we’re about to replace this class anyway.)

  • Module (or component) —A part of an application’s source code that’s managed in a separate folder and built as a separate binary file. The module provides an interface to other modules, so that modules know nothing about each other’s implementation. In Java terms, you usually have one JAR file per module, and put all the JAR files on the same classpath in order to run the application.