Module Rules | Project Jigsaw | Java 9 | Part 16

Veröffentlicht am: 12 Dezember 2017
auf dem Kanal: 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...  
~-~~-~~~-~~-~


Auf dieser Seite können Sie das Online-Video Module Rules | Project Jigsaw | Java 9 | Part 16 mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer iLearn Technology 12 Dezember 2017 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 33 Mal angesehen und es wurde von 13 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!