jdk/src/java.base/share/classes/java/lang/module/package-info.java
changeset 44545 83b611b88ac8
parent 43712 5dfd0950317c
child 45433 01ecdcf197df
equal deleted inserted replaced
44480:2c33418a6d57 44545:83b611b88ac8
    68  *     module m1 { requires m2; requires java.xml; }
    68  *     module m1 { requires m2; requires java.xml; }
    69  *     module m2 { }
    69  *     module m2 { }
    70  * } </pre>
    70  * } </pre>
    71  *
    71  *
    72  * <p> If module {@code m1} is resolved with the configuration for the {@link
    72  * <p> If module {@code m1} is resolved with the configuration for the {@link
    73  * java.lang.reflect.Layer#boot() boot} layer as the parent then the resulting
    73  * java.lang.ModuleLayer#boot() boot} layer as the parent then the resulting
    74  * configuration contains two modules ({@code m1}, {@code m2}). The edges in
    74  * configuration contains two modules ({@code m1}, {@code m2}). The edges in
    75  * its readability graph are:
    75  * its readability graph are:
    76  * <pre> {@code
    76  * <pre> {@code
    77  *     m1 --> m2
    77  *     m1 --> m2
    78  *     m1 --> java.xml
    78  *     m1 --> java.xml
    90  * then the readability graph will contain read edges for each module that
    90  * then the readability graph will contain read edges for each module that
    91  * "{@code requires static M}". </p>
    91  * "{@code requires static M}". </p>
    92  *
    92  *
    93  * <p> {@link java.lang.module.ModuleDescriptor#isAutomatic() Automatic} modules
    93  * <p> {@link java.lang.module.ModuleDescriptor#isAutomatic() Automatic} modules
    94  * receive special treatment during resolution. Each automatic module is resolved
    94  * receive special treatment during resolution. Each automatic module is resolved
    95  * so that it reads all other modules in the configuration and all parent
    95  * as if it "{@code requires transitive}" all observable automatic modules and
    96  * configurations. Each automatic module is also resolved as if it
    96  * all automatic modules in the parent configurations. Each automatic module is
    97  * "{@code requires transitive}" all other automatic modules in the configuration
    97  * resolved so that it reads all other modules in the resulting configuration and
    98  * (and all automatic modules in parent configurations). </p>
    98  * all modules in parent configurations. </p>
    99  *
    99  *
   100  * <h2><a name="servicebinding">Service binding</a></h2>
   100  * <h2><a name="servicebinding">Service binding</a></h2>
   101  *
   101  *
   102  * <p> Service binding is the process of augmenting a graph of resolved modules
   102  * <p> Service binding is the process of augmenting a graph of resolved modules
   103  * from the set of observable modules induced by the service-use dependence
   103  * from the set of observable modules induced by the service-use dependence