Java 9 Module Internals Explained in Brief
One of the new features added by Java 9 is the module system. This article is the second part in a 3 part article. In Part 1 , I gave a high level introduction to modules and the advantages that they provide. In this part, I will dive more into the details of what exactly a module is, what it consists of and other module internals. See also Module Introduction and Creating a Module . What is a module As explained in the introductory article on modules, modules are basically groups of packages. Modules help to organize the code better and to achieve the Single Responsibility Principle(SRP). Also, a module can be deployed by itself. So if there is a large application, you can break it down into modules. Each module can be built into a separate jar file and deployed as required instead of deploying a big fat jar file for the whole application. Module Descriptor Along with very module, you need to provide a module descriptor. The module descriptor needs to be present at the root of the ...