1 /*
   2  * Copyright (c) 2014, 2018, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   5  * This code is free software; you can redistribute it and/or modify it
   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.  Oracle designates this
   8  * particular file as subject to the "Classpath" exception as provided
   9  * by Oracle in the LICENSE file that accompanied this code.
  10  *
  11  * This code is distributed in the hope that it will be useful, but WITHOUT
  12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14  * version 2 for more details (a copy is included in the LICENSE file that
  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 /**
  27  * Defines the foundational APIs of the Java SE Platform.
  28  *
  29  * <dl>
  30  * <dt class="simpleTagLabel" style="font-family:'DejaVu Sans', Arial, Helvetica, sans serif">Providers:</dt>
  31  * <dd> The JDK implementation of this module provides an implementation of
  32  *      the {@index jrt jrt} {@linkplain java.nio.file.spi.FileSystemProvider
  33  *      file system provider} to enumerate and read the class and resource
  34  *      files in a run-time image.
  35  *      The jrt file system can be created by calling
  36  *      {@link java.nio.file.FileSystems#newFileSystem
  37  *      FileSystems.newFileSystem(URI.create("jrt:/"))}.
  38  *      </dd>
  39  * <dt class="simpleTagLabel" style="font-family:'DejaVu Sans', Arial, Helvetica, sans serif">Tool Guides:</dt>
  40  * <dd style="font-family:'DejaVu Sans', Arial, Helvetica, sans serif"> {@extLink java_tool_reference java launcher},
  41  *      {@extLink keytool_tool_reference keytool}</dd>
  42  * </dl>
  43  *
  44  * @provides java.nio.file.spi.FileSystemProvider
  45  *
  46  * @uses java.lang.System.LoggerFinder
  47  * @uses java.net.ContentHandlerFactory
  48  * @uses java.net.spi.URLStreamHandlerProvider
  49  * @uses java.nio.channels.spi.AsynchronousChannelProvider
  50  * @uses java.nio.channels.spi.SelectorProvider
  51  * @uses java.nio.charset.spi.CharsetProvider
  52  * @uses java.nio.file.spi.FileSystemProvider
  53  * @uses java.nio.file.spi.FileTypeDetector
  54  * @uses java.security.Provider
  55  * @uses java.text.spi.BreakIteratorProvider
  56  * @uses java.text.spi.CollatorProvider
  57  * @uses java.text.spi.DateFormatProvider
  58  * @uses java.text.spi.DateFormatSymbolsProvider
  59  * @uses java.text.spi.DecimalFormatSymbolsProvider
  60  * @uses java.text.spi.NumberFormatProvider
  61  * @uses java.time.chrono.AbstractChronology
  62  * @uses java.time.chrono.Chronology
  63  * @uses java.time.zone.ZoneRulesProvider
  64  * @uses java.util.spi.CalendarDataProvider
  65  * @uses java.util.spi.CalendarNameProvider
  66  * @uses java.util.spi.CurrencyNameProvider
  67  * @uses java.util.spi.LocaleNameProvider
  68  * @uses java.util.spi.ResourceBundleControlProvider
  69  * @uses java.util.spi.ResourceBundleProvider
  70  * @uses java.util.spi.TimeZoneNameProvider
  71  * @uses java.util.spi.ToolProvider
  72  * @uses javax.security.auth.spi.LoginModule
  73  *
  74  * @moduleGraph
  75  * @since 9
  76  */
  77 module java.base {
  78 
  79     exports java.io;
  80     exports java.lang;
  81     exports java.lang.annotation;
  82     exports java.lang.constant;
  83     exports java.lang.invoke;
  84     exports java.lang.module;
  85     exports java.lang.ref;
  86     exports java.lang.reflect;
  87     exports java.math;
  88     exports java.net;
  89     exports java.net.spi;
  90     exports java.nio;
  91     exports java.nio.channels;
  92     exports java.nio.channels.spi;
  93     exports java.nio.charset;
  94     exports java.nio.charset.spi;
  95     exports java.nio.file;
  96     exports java.nio.file.attribute;
  97     exports java.nio.file.spi;
  98     exports java.security;
  99     exports java.security.acl;
 100     exports java.security.cert;
 101     exports java.security.interfaces;
 102     exports java.security.spec;
 103     exports java.text;
 104     exports java.text.spi;
 105     exports java.time;
 106     exports java.time.chrono;
 107     exports java.time.format;
 108     exports java.time.temporal;
 109     exports java.time.zone;
 110     exports java.util;
 111     exports java.util.concurrent;
 112     exports java.util.concurrent.atomic;
 113     exports java.util.concurrent.locks;
 114     exports java.util.function;
 115     exports java.util.jar;
 116     exports java.util.regex;
 117     exports java.util.spi;
 118     exports java.util.stream;
 119     exports java.util.zip;
 120     exports javax.crypto;
 121     exports javax.crypto.interfaces;
 122     exports javax.crypto.spec;
 123     exports javax.net;
 124     exports javax.net.ssl;
 125     exports javax.security.auth;
 126     exports javax.security.auth.callback;
 127     exports javax.security.auth.login;
 128     exports javax.security.auth.spi;
 129     exports javax.security.auth.x500;
 130     exports javax.security.cert;
 131 
 132 
 133     // additional qualified exports may be inserted at build time
 134     // see make/gensrc/GenModuleInfo.gmk
 135 
 136     exports com.sun.security.ntlm to
 137         java.security.sasl;
 138     exports jdk.internal to
 139         jdk.jfr;
 140     exports jdk.internal.access to
 141         java.desktop,
 142         java.logging,
 143         java.management,
 144         java.naming,
 145         java.rmi,
 146         jdk.jlink,
 147         jdk.net;
 148     exports jdk.internal.event to
 149         jdk.jfr;
 150     exports jdk.internal.jimage to
 151         jdk.jlink;
 152     exports jdk.internal.jimage.decompressor to
 153         jdk.jlink;
 154     exports jdk.internal.loader to
 155         java.instrument,
 156         java.logging;
 157     exports jdk.internal.jmod to
 158         jdk.compiler,
 159         jdk.jlink;
 160     exports jdk.internal.logger to
 161         java.logging;
 162     exports jdk.internal.org.objectweb.asm to
 163         jdk.jartool,
 164         jdk.jfr,
 165         jdk.jlink,
 166         jdk.scripting.nashorn;
 167     exports jdk.internal.org.objectweb.asm.tree to
 168         jdk.jfr,
 169         jdk.jlink;
 170     exports jdk.internal.org.objectweb.asm.util to
 171         jdk.jfr,
 172         jdk.scripting.nashorn;
 173     exports jdk.internal.org.objectweb.asm.commons to
 174         jdk.jfr,
 175         jdk.scripting.nashorn;
 176     exports jdk.internal.org.objectweb.asm.signature to
 177         jdk.scripting.nashorn;
 178     exports jdk.internal.org.xml.sax to
 179         jdk.jfr;
 180     exports jdk.internal.org.xml.sax.helpers to
 181         jdk.jfr;
 182     exports jdk.internal.misc to
 183         java.desktop,
 184         java.logging,
 185         java.management,
 186         java.naming,
 187         java.net.http,
 188         java.rmi,
 189         java.security.jgss,
 190         java.xml,
 191         jdk.attach,
 192         jdk.charsets,
 193         jdk.compiler,
 194         jdk.jfr,
 195         jdk.jshell,
 196         jdk.scripting.nashorn,
 197         jdk.scripting.nashorn.shell,
 198         jdk.unsupported,
 199         jdk.internal.vm.ci;
 200     exports jdk.internal.module to
 201         java.instrument,
 202         java.management.rmi,
 203         jdk.jartool,
 204         jdk.jfr,
 205         jdk.jlink;
 206     exports jdk.internal.perf to
 207         java.management,
 208         jdk.management.agent,
 209         jdk.internal.jvmstat;
 210     exports jdk.internal.ref to
 211         java.desktop;
 212     exports jdk.internal.reflect to
 213         java.logging,
 214         java.sql,
 215         java.sql.rowset,
 216         jdk.dynalink,
 217         jdk.scripting.nashorn,
 218         jdk.unsupported;
 219     exports jdk.internal.vm to
 220         jdk.internal.jvmstat,
 221         jdk.management.agent;
 222     exports jdk.internal.vm.annotation to
 223         jdk.internal.vm.ci,
 224         jdk.unsupported;
 225     exports jdk.internal.util.jar to
 226         jdk.jartool;
 227     exports jdk.internal.util.xml to
 228         jdk.jfr;
 229     exports jdk.internal.util.xml.impl to
 230         jdk.jfr;
 231     exports sun.net to
 232         java.net.http,
 233         jdk.naming.dns;
 234     exports sun.net.ext to
 235         jdk.net;
 236     exports sun.net.dns to
 237         java.security.jgss,
 238         jdk.naming.dns;
 239     exports sun.net.util to
 240         java.desktop,
 241         jdk.jconsole,
 242         java.net.http;
 243     exports sun.net.www to
 244         java.net.http,
 245         jdk.jartool;
 246     exports sun.net.www.protocol.http to
 247         java.security.jgss;
 248     exports sun.nio.ch to
 249         java.management,
 250         jdk.crypto.cryptoki,
 251         jdk.net,
 252         jdk.sctp;
 253     exports sun.nio.cs to
 254         jdk.charsets;
 255     exports sun.reflect.annotation to
 256         jdk.compiler;
 257     exports sun.reflect.generics.reflectiveObjects to
 258         java.desktop;
 259     exports sun.reflect.misc to
 260         java.desktop,
 261         java.datatransfer,
 262         java.management,
 263         java.management.rmi,
 264         java.rmi,
 265         java.sql.rowset;
 266     exports sun.security.action to
 267         java.desktop,
 268         java.security.jgss;
 269     exports sun.security.internal.interfaces to
 270         jdk.crypto.cryptoki;
 271     exports sun.security.internal.spec to
 272         jdk.crypto.cryptoki;
 273     exports sun.security.jca to
 274         java.smartcardio,
 275         jdk.crypto.ec,
 276         jdk.crypto.cryptoki,
 277         jdk.naming.dns;
 278     exports sun.security.pkcs to
 279         jdk.crypto.ec,
 280         jdk.jartool;
 281     exports sun.security.provider to
 282         java.rmi,
 283         java.security.jgss,
 284         jdk.crypto.cryptoki,
 285         jdk.security.auth;
 286     exports sun.security.provider.certpath to
 287         java.naming;
 288     exports sun.security.rsa to
 289         jdk.crypto.cryptoki;
 290     exports sun.security.timestamp to
 291         jdk.jartool;
 292     exports sun.security.tools to
 293         jdk.jartool;
 294     exports sun.security.util to
 295         java.desktop,
 296         java.naming,
 297         java.rmi,
 298         java.security.jgss,
 299         java.security.sasl,
 300         java.smartcardio,
 301         java.xml.crypto,
 302         jdk.crypto.ec,
 303         jdk.crypto.cryptoki,
 304         jdk.jartool,
 305         jdk.security.auth,
 306         jdk.security.jgss;
 307     exports sun.security.util.math to
 308         jdk.crypto.ec;
 309     exports sun.security.util.math.intpoly to
 310         jdk.crypto.ec;
 311     exports sun.security.x509 to
 312         jdk.crypto.ec,
 313         jdk.crypto.cryptoki,
 314         jdk.jartool;
 315     exports sun.security.validator to
 316         jdk.jartool;
 317     exports sun.util.cldr to
 318         jdk.jlink;
 319     exports sun.util.locale.provider to
 320         java.desktop,
 321         jdk.jlink,
 322         jdk.localedata;
 323     exports sun.util.logging to
 324         java.desktop,
 325         java.logging,
 326         java.prefs;
 327     exports sun.util.resources to
 328         jdk.localedata;
 329 
 330 
 331     // the service types defined by the APIs in this module
 332 
 333     uses java.lang.System.LoggerFinder;
 334     uses java.net.ContentHandlerFactory;
 335     uses java.net.spi.URLStreamHandlerProvider;
 336     uses java.nio.channels.spi.AsynchronousChannelProvider;
 337     uses java.nio.channels.spi.SelectorProvider;
 338     uses java.nio.charset.spi.CharsetProvider;
 339     uses java.nio.file.spi.FileSystemProvider;
 340     uses java.nio.file.spi.FileTypeDetector;
 341     uses java.security.Provider;
 342     uses java.text.spi.BreakIteratorProvider;
 343     uses java.text.spi.CollatorProvider;
 344     uses java.text.spi.DateFormatProvider;
 345     uses java.text.spi.DateFormatSymbolsProvider;
 346     uses java.text.spi.DecimalFormatSymbolsProvider;
 347     uses java.text.spi.NumberFormatProvider;
 348     uses java.time.chrono.AbstractChronology;
 349     uses java.time.chrono.Chronology;
 350     uses java.time.zone.ZoneRulesProvider;
 351     uses java.util.spi.CalendarDataProvider;
 352     uses java.util.spi.CalendarNameProvider;
 353     uses java.util.spi.CurrencyNameProvider;
 354     uses java.util.spi.LocaleNameProvider;
 355     uses java.util.spi.ResourceBundleControlProvider;
 356     uses java.util.spi.ResourceBundleProvider;
 357     uses java.util.spi.TimeZoneNameProvider;
 358     uses java.util.spi.ToolProvider;
 359     uses javax.security.auth.spi.LoginModule;
 360 
 361     // JDK-internal service types
 362 
 363     uses jdk.internal.logger.DefaultLoggerFinder;
 364     uses sun.text.spi.JavaTimeDateTimePatternProvider;
 365     uses sun.util.spi.CalendarProvider;
 366     uses sun.util.locale.provider.LocaleDataMetaInfo;
 367     uses sun.util.resources.LocaleData.CommonResourceBundleProvider;
 368     uses sun.util.resources.LocaleData.SupplementaryResourceBundleProvider;
 369 
 370     // Built-in service providers that are located via ServiceLoader
 371 
 372     provides java.nio.file.spi.FileSystemProvider with
 373         jdk.internal.jrtfs.JrtFileSystemProvider;
 374 }