Module Rules | Project Jigsaw | Java 9 | Part 16

Pubblicato il: 12 dicembre 2017
sul canale di: iLearn Technology
33
13

We should follow couple of rules to develop Java 9 Modules:
• Each module should have a unique name
As the Modules live in a global space in JVM, each module should have a unique name. Like package names and JAR file names, we can use Reverse Domain Name pattern to define a module name.
For example:-
if We are going to develop modules for ilearntechnology, then you can use “com.ilearntechnology.module1” as your first module name, then “com.ilearntechnology.module2” and so on.
• Each module should have one and only one Module Descriptor
As we discussed, by looking at the naming convention, Java 9 Module system allows “module-info.java” as Module Descriptor.
It should be placed at root folder of the Module.
For example:-
If we are going to develop “com.ilearntechnology.module1” module, then we should place our Module Descriptor under “com.ilearntechnology.module1” name.
Note:
• A Module can have any number of packages.
• One Module cannot have multiple sub-module code and description.
There are few more import Rules in Java 9 Module System.
You will get more clarity in further slides with enough information.

~-~~-~~~-~~-~
Please watch: "What is JShell ? | Practical explanation of JShell | Java 9 feature JShell | JShell | REPL"
   • What is JShell ? | Practical explanation o...  
~-~~-~~~-~~-~


In questa pagina del sito puoi guardare il video online Module Rules | Project Jigsaw | Java 9 | Part 16 della durata di ore minuti seconda in buona qualità , che l'utente ha caricato iLearn Technology 12 dicembre 2017, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 33 volte e gli è piaciuto 13 spettatori. Buona visione!