1. Module Defined
First, we need to answer a simple question:
What is a software module on the Java platform?
1.1. Defining a Module
A module is simply a “chunk of software.” Unfortunately, that’s not concise enough to differentiate a module from other software chunks, such as classes, packages, components, services, or even applications. So, we need to focus on this definition:
A software module is a deployable, manageable, natively reusable, composable, stateless unit of software that provides a concise interface to consumers.
That’s a mouthful, and I feel bad about dumping this on you in the very first chapter. But, after some explanation, you’re sure to grasp what a module is. Figure 1.1 illustrates this definition. Next, you explore the ...
Get Java Application Architecture: Modularity Patterns with Examples Using OSGi now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.