src/java.base/share/classes/java/lang/ModuleLayer.java
changeset 48075 c51f9eea6d2b
parent 47866 39db80b32b69
child 48222 37d3e1a80c3b
equal deleted inserted replaced
48074:9c9bd41c1af2 48075:c51f9eea6d2b
   320      *         method; may be {@code null} for the bootstrap class loader
   320      *         method; may be {@code null} for the bootstrap class loader
   321      *
   321      *
   322      * @return The newly created layer
   322      * @return The newly created layer
   323      *
   323      *
   324      * @throws IllegalArgumentException
   324      * @throws IllegalArgumentException
   325      *         If the parent of the given configuration is not the configuration
   325      *         If the given configuration has more than one parent or the parent
   326      *         for this layer
   326      *         of the configuration is not the configuration for this layer
   327      * @throws LayerInstantiationException
   327      * @throws LayerInstantiationException
   328      *         If the layer cannot be created for any of the reasons specified
   328      *         If the layer cannot be created for any of the reasons specified
   329      *         by the static {@code defineModulesWithOneLoader} method
   329      *         by the static {@code defineModulesWithOneLoader} method
   330      * @throws SecurityException
   330      * @throws SecurityException
   331      *         If {@code RuntimePermission("createClassLoader")} or
   331      *         If {@code RuntimePermission("createClassLoader")} or
   362      *         this method; may be {@code null} for the bootstrap class loader
   362      *         this method; may be {@code null} for the bootstrap class loader
   363      *
   363      *
   364      * @return The newly created layer
   364      * @return The newly created layer
   365      *
   365      *
   366      * @throws IllegalArgumentException
   366      * @throws IllegalArgumentException
   367      *         If the parent of the given configuration is not the configuration
   367      *         If the given configuration has more than one parent or the parent
   368      *         for this layer
   368      *         of the configuration is not the configuration for this layer
   369      * @throws LayerInstantiationException
   369      * @throws LayerInstantiationException
   370      *         If the layer cannot be created for any of the reasons specified
   370      *         If the layer cannot be created for any of the reasons specified
   371      *         by the static {@code defineModulesWithManyLoaders} method
   371      *         by the static {@code defineModulesWithManyLoaders} method
   372      * @throws SecurityException
   372      * @throws SecurityException
   373      *         If {@code RuntimePermission("createClassLoader")} or
   373      *         If {@code RuntimePermission("createClassLoader")} or
   401      *         The function to map a module name to a class loader
   401      *         The function to map a module name to a class loader
   402      *
   402      *
   403      * @return The newly created layer
   403      * @return The newly created layer
   404      *
   404      *
   405      * @throws IllegalArgumentException
   405      * @throws IllegalArgumentException
   406      *         If the parent of the given configuration is not the configuration
   406      *         If the given configuration has more than one parent or the parent
   407      *         for this layer
   407      *         of the configuration is not the configuration for this layer
   408      * @throws LayerInstantiationException
   408      * @throws LayerInstantiationException
   409      *         If the layer cannot be created for any of the reasons specified
   409      *         If the layer cannot be created for any of the reasons specified
   410      *         by the static {@code defineModules} method
   410      *         by the static {@code defineModules} method
   411      * @throws SecurityException
   411      * @throws SecurityException
   412      *         If {@code RuntimePermission("getClassLoader")} is denied by
   412      *         If {@code RuntimePermission("getClassLoader")} is denied by
   471      *         method; may be {@code null} for the bootstrap class loader
   471      *         method; may be {@code null} for the bootstrap class loader
   472      *
   472      *
   473      * @return A controller that controls the newly created layer
   473      * @return A controller that controls the newly created layer
   474      *
   474      *
   475      * @throws IllegalArgumentException
   475      * @throws IllegalArgumentException
   476      *         If the parent configurations do not match the configuration of
   476      *         If the parent(s) of the given configuration do not match the
   477      *         the parent layers, including order
   477      *         configuration of the parent layers, including order
   478      * @throws LayerInstantiationException
   478      * @throws LayerInstantiationException
   479      *         If all modules cannot be defined to the same class loader for any
   479      *         If all modules cannot be defined to the same class loader for any
   480      *         of the reasons listed above
   480      *         of the reasons listed above
   481      * @throws SecurityException
   481      * @throws SecurityException
   482      *         If {@code RuntimePermission("createClassLoader")} or
   482      *         If {@code RuntimePermission("createClassLoader")} or
   544      *         this method; may be {@code null} for the bootstrap class loader
   544      *         this method; may be {@code null} for the bootstrap class loader
   545      *
   545      *
   546      * @return A controller that controls the newly created layer
   546      * @return A controller that controls the newly created layer
   547      *
   547      *
   548      * @throws IllegalArgumentException
   548      * @throws IllegalArgumentException
   549      *         If the parent configurations do not match the configuration of
   549      *         If the parent(s) of the given configuration do not match the
   550      *         the parent layers, including order
   550      *         configuration of the parent layers, including order
   551      * @throws LayerInstantiationException
   551      * @throws LayerInstantiationException
   552      *         If the layer cannot be created because the configuration contains
   552      *         If the layer cannot be created because the configuration contains
   553      *         a module named "{@code java.base}" or a module contains a package
   553      *         a module named "{@code java.base}" or a module contains a package
   554      *         named "{@code java}" or a package with a name starting with
   554      *         named "{@code java}" or a package with a name starting with
   555      *         "{@code java.}"
   555      *         "{@code java.}"
   635      *         The function to map a module name to a class loader
   635      *         The function to map a module name to a class loader
   636      *
   636      *
   637      * @return A controller that controls the newly created layer
   637      * @return A controller that controls the newly created layer
   638      *
   638      *
   639      * @throws IllegalArgumentException
   639      * @throws IllegalArgumentException
   640      *         If the parent configurations do not match the configuration of
   640      *         If the parent(s) of the given configuration do not match the
   641      *         the parent layers, including order
   641      *         configuration of the parent layers, including order
   642      * @throws LayerInstantiationException
   642      * @throws LayerInstantiationException
   643      *         If creating the layer fails for any of the reasons listed above
   643      *         If creating the layer fails for any of the reasons listed above
   644      * @throws SecurityException
   644      * @throws SecurityException
   645      *         If {@code RuntimePermission("getClassLoader")} is denied by
   645      *         If {@code RuntimePermission("getClassLoader")} is denied by
   646      *         the security manager
   646      *         the security manager