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.invoke;
  83     exports java.lang.module;
  84     exports java.lang.ref;
  85     exports java.lang.reflect;
  86     exports java.math;
  87     exports java.net;
  88     exports java.net.spi;
  89     exports java.nio;
  90     exports java.nio.channels;
  91     exports java.nio.channels.spi;
  92     exports java.nio.charset;
  93     exports java.nio.charset.spi;
  94     exports java.nio.file;
  95     exports java.nio.file.attribute;
  96     exports java.nio.file.spi;
  97     exports java.security;
  98     exports java.security.acl;
  99     exports java.security.cert;
 100     exports java.security.interfaces;
 101     exports java.security.spec;
 102     exports java.text;
 103     exports java.text.spi;
 104     exports java.time;
 105     exports java.time.chrono;
 106     exports java.time.format;
 107     exports java.time.temporal;
 108     exports java.time.zone;
 109     exports java.util;
 110     exports java.util.concurrent;
 111     exports java.util.concurrent.atomic;
 112     exports java.util.concurrent.locks;
 113     exports java.util.function;
 114     exports java.util.jar;
 115     exports java.util.regex;
 116     exports java.util.spi;
 117     exports java.util.stream;
 118     exports java.util.zip;
 119     exports javax.crypto;
 120     exports javax.crypto.interfaces;
 121     exports javax.crypto.spec;
 122     exports javax.net;
 123     exports javax.net.ssl;
 124     exports javax.security.auth;
 125     exports javax.security.auth.callback;
 126     exports javax.security.auth.login;
 127     exports javax.security.auth.spi;
 128     exports javax.security.auth.x500;
 129     exports javax.security.cert;
 130 
 131 
 132     // additional qualified exports may be inserted at build time
 133     // see make/gensrc/GenModuleInfo.gmk
 134 
 135     exports com.sun.security.ntlm to
 136         java.security.sasl;
 137     exports jdk.internal to
 138         jdk.jfr;
 139     exports jdk.internal.access to
 140         java.desktop,
 141         java.logging,
 142         java.management,
 143         java.naming,
 144         java.rmi,
 145         jdk.jlink,
 146         jdk.net;
 147     exports jdk.internal.event to
 148         jdk.jfr;
 149     exports jdk.internal.jimage to
 150         jdk.jlink;
 151     exports jdk.internal.jimage.decompressor to
 152         jdk.jlink;
 153     exports jdk.internal.loader to
 154         java.instrument,
 155         java.logging;
 156     exports jdk.internal.jmod to
 157         jdk.compiler,
 158         jdk.jlink;
 159     exports jdk.internal.logger to
 160         java.logging;
 161     exports jdk.internal.org.objectweb.asm to
 162         jdk.jartool,
 163         jdk.jfr,
 164         jdk.jlink,
 165         jdk.scripting.nashorn;
 166     exports jdk.internal.org.objectweb.asm.tree to
 167         jdk.jfr,
 168         jdk.jlink;
 169     exports jdk.internal.org.objectweb.asm.util to
 170         jdk.jfr,
 171         jdk.scripting.nashorn;
 172     exports jdk.internal.org.objectweb.asm.commons to
 173         jdk.jfr,
 174         jdk.scripting.nashorn;
 175     exports jdk.internal.org.objectweb.asm.signature to
 176         jdk.scripting.nashorn;
 177     exports jdk.internal.org.xml.sax to
 178         jdk.jfr;
 179     exports jdk.internal.org.xml.sax.helpers to
 180         jdk.jfr;
 181     exports jdk.internal.misc to
 182         java.desktop,
 183         java.logging,
 184         java.management,
 185         java.naming,
 186         java.net.http,
 187         java.rmi,
 188         java.security.jgss,
 189         java.xml,
 190         jdk.attach,
 191         jdk.charsets,
 192         jdk.compiler,
 193         jdk.jfr,
 194         jdk.jshell,
 195         jdk.scripting.nashorn,
 196         jdk.scripting.nashorn.shell,
 197         jdk.unsupported,
 198         jdk.internal.vm.ci;
 199     exports jdk.internal.module to
 200         java.instrument,
 201         java.management.rmi,
 202         jdk.jartool,
 203         jdk.jfr,
 204         jdk.jlink;
 205     exports jdk.internal.perf to
 206         java.management,
 207         jdk.management.agent,
 208         jdk.internal.jvmstat;
 209     exports jdk.internal.ref to
 210         java.desktop;
 211     exports jdk.internal.reflect to
 212         java.logging,
 213         java.sql,
 214         java.sql.rowset,
 215         jdk.dynalink,
 216         jdk.scripting.nashorn,
 217         jdk.unsupported;
 218     exports jdk.internal.vm to
 219         jdk.internal.jvmstat,
 220         jdk.management.agent;
 221     exports jdk.internal.vm.annotation to
 222         jdk.internal.vm.ci,
 223         jdk.unsupported;
 224     exports jdk.internal.util.jar to
 225         jdk.jartool;
 226     exports jdk.internal.util.xml to
 227         jdk.jfr;
 228     exports jdk.internal.util.xml.impl to
 229         jdk.jfr;
 230     exports sun.net to
 231         java.net.http,
 232         jdk.naming.dns;
 233     exports sun.net.ext to
 234         jdk.net;
 235     exports sun.net.dns to
 236         java.security.jgss,
 237         jdk.naming.dns;
 238     exports sun.net.util to
 239         java.desktop,
 240         jdk.jconsole,
 241         java.net.http;
 242     exports sun.net.www to
 243         java.net.http,
 244         jdk.jartool;
 245     exports sun.net.www.protocol.http to
 246         java.security.jgss;
 247     exports sun.nio.ch to
 248         java.management,
 249         jdk.crypto.cryptoki,
 250         jdk.net,
 251         jdk.sctp;
 252     exports sun.nio.cs to
 253         jdk.charsets;
 254     exports sun.reflect.annotation to
 255         jdk.compiler;
 256     exports sun.reflect.generics.reflectiveObjects to
 257         java.desktop;
 258     exports sun.reflect.misc to
 259         java.desktop,
 260         java.datatransfer,
 261         java.management,
 262         java.management.rmi,
 263         java.rmi,
 264         java.sql.rowset;
 265     exports sun.security.action to
 266         java.desktop,
 267         java.security.jgss;
 268     exports sun.security.internal.interfaces to
 269         jdk.crypto.cryptoki;
 270     exports sun.security.internal.spec to
 271         jdk.crypto.cryptoki;
 272     exports sun.security.jca to
 273         java.smartcardio,
 274         jdk.crypto.ec,
 275         jdk.crypto.cryptoki,
 276         jdk.naming.dns;
 277     exports sun.security.pkcs to
 278         jdk.crypto.ec,
 279         jdk.jartool;
 280     exports sun.security.provider to
 281         java.rmi,
 282         java.security.jgss,
 283         jdk.crypto.cryptoki,
 284         jdk.security.auth;
 285     exports sun.security.provider.certpath to
 286         java.naming;
 287     exports sun.security.rsa to
 288         jdk.crypto.cryptoki;
 289     exports sun.security.timestamp to
 290         jdk.jartool;
 291     exports sun.security.tools to
 292         jdk.jartool;
 293     exports sun.security.util to
 294         java.desktop,
 295         java.naming,
 296         java.rmi,
 297         java.security.jgss,
 298         java.security.sasl,
 299         java.smartcardio,
 300         java.xml.crypto,
 301         jdk.crypto.ec,
 302         jdk.crypto.cryptoki,
 303         jdk.jartool,
 304         jdk.security.auth,
 305         jdk.security.jgss;
 306     exports sun.security.util.math to
 307         jdk.crypto.ec;
 308     exports sun.security.util.math.intpoly to
 309         jdk.crypto.ec;
 310     exports sun.security.x509 to
 311         jdk.crypto.ec,
 312         jdk.crypto.cryptoki,
 313         jdk.jartool;
 314     exports sun.security.validator to
 315         jdk.jartool;
 316     exports sun.util.cldr to
 317         jdk.jlink;
 318     exports sun.util.locale.provider to
 319         java.desktop,
 320         jdk.jlink,
 321         jdk.localedata;
 322     exports sun.util.logging to
 323         java.desktop,
 324         java.logging,
 325         java.prefs;
 326     exports sun.util.resources to
 327         jdk.localedata;
 328 
 329 
 330     // the service types defined by the APIs in this module
 331 
 332     uses java.lang.System.LoggerFinder;
 333     uses java.net.ContentHandlerFactory;
 334     uses java.net.spi.URLStreamHandlerProvider;
 335     uses java.nio.channels.spi.AsynchronousChannelProvider;
 336     uses java.nio.channels.spi.SelectorProvider;
 337     uses java.nio.charset.spi.CharsetProvider;
 338     uses java.nio.file.spi.FileSystemProvider;
 339     uses java.nio.file.spi.FileTypeDetector;
 340     uses java.security.Provider;
 341     uses java.text.spi.BreakIteratorProvider;
 342     uses java.text.spi.CollatorProvider;
 343     uses java.text.spi.DateFormatProvider;
 344     uses java.text.spi.DateFormatSymbolsProvider;
 345     uses java.text.spi.DecimalFormatSymbolsProvider;
 346     uses java.text.spi.NumberFormatProvider;
 347     uses java.time.chrono.AbstractChronology;
 348     uses java.time.chrono.Chronology;
 349     uses java.time.zone.ZoneRulesProvider;
 350     uses java.util.spi.CalendarDataProvider;
 351     uses java.util.spi.CalendarNameProvider;
 352     uses java.util.spi.CurrencyNameProvider;
 353     uses java.util.spi.LocaleNameProvider;
 354     uses java.util.spi.ResourceBundleControlProvider;
 355     uses java.util.spi.ResourceBundleProvider;
 356     uses java.util.spi.TimeZoneNameProvider;
 357     uses java.util.spi.ToolProvider;
 358     uses javax.security.auth.spi.LoginModule;
 359 
 360     // JDK-internal service types
 361 
 362     uses jdk.internal.logger.DefaultLoggerFinder;
 363     uses sun.text.spi.JavaTimeDateTimePatternProvider;
 364     uses sun.util.spi.CalendarProvider;
 365     uses sun.util.locale.provider.LocaleDataMetaInfo;
 366     uses sun.util.resources.LocaleData.CommonResourceBundleProvider;
 367     uses sun.util.resources.LocaleData.SupplementaryResourceBundleProvider;
 368 
 369     // Built-in service providers that are located via ServiceLoader
 370 
 371     provides java.nio.file.spi.FileSystemProvider with
 372         jdk.internal.jrtfs.JrtFileSystemProvider;
 373 }