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