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.foreign;
  90     exports java.foreign.annotations;
  91     exports java.foreign.memory;
  92     exports java.foreign.layout;
  93     exports java.nio;
  94     exports java.nio.channels;
  95     exports java.nio.channels.spi;
  96     exports java.nio.charset;
  97     exports java.nio.charset.spi;
  98     exports java.nio.file;
  99     exports java.nio.file.attribute;
 100     exports java.nio.file.spi;
 101     exports java.security;
 102     exports java.security.acl;
 103     exports java.security.cert;
 104     exports java.security.interfaces;
 105     exports java.security.spec;
 106     exports java.text;
 107     exports java.text.spi;
 108     exports java.time;
 109     exports java.time.chrono;
 110     exports java.time.format;
 111     exports java.time.temporal;
 112     exports java.time.zone;
 113     exports java.util;
 114     exports java.util.concurrent;
 115     exports java.util.concurrent.atomic;
 116     exports java.util.concurrent.locks;
 117     exports java.util.function;
 118     exports java.util.jar;
 119     exports java.util.regex;
 120     exports java.util.spi;
 121     exports java.util.stream;
 122     exports java.util.zip;
 123     exports javax.crypto;
 124     exports javax.crypto.interfaces;
 125     exports javax.crypto.spec;
 126     exports javax.net;
 127     exports javax.net.ssl;
 128     exports javax.security.auth;
 129     exports javax.security.auth.callback;
 130     exports javax.security.auth.login;
 131     exports javax.security.auth.spi;
 132     exports javax.security.auth.x500;
 133     exports javax.security.cert;
 134 
 135 
 136     // additional qualified exports may be inserted at build time
 137     // see make/gensrc/GenModuleInfo.gmk
 138 
 139     exports com.sun.security.ntlm to
 140         java.security.sasl;
 141     exports jdk.internal to
 142         jdk.jfr;
 143     exports jdk.internal.jimage to
 144         jdk.jlink;
 145     exports jdk.internal.jimage.decompressor to
 146         jdk.jlink;
 147     exports jdk.internal.loader to
 148         java.instrument,
 149         java.logging;
 150     exports jdk.internal.jmod to
 151         jdk.compiler,
 152         jdk.jlink;
 153     exports jdk.internal.logger to
 154         java.logging;
 155     exports jdk.internal.foreign to
 156         jdk.jextract;
 157     exports jdk.internal.foreign.memory to
 158         jdk.jextract;
 159     exports jdk.internal.org.objectweb.asm to
 160         jdk.jartool,
 161         jdk.jfr,
 162         jdk.jlink,
 163         jdk.scripting.nashorn,
 164         jdk.jextract;
 165     exports jdk.internal.org.objectweb.asm.tree to
 166         jdk.jfr,
 167         jdk.jlink;
 168     exports jdk.internal.org.objectweb.asm.util to
 169         jdk.jfr,
 170         jdk.scripting.nashorn,
 171         jdk.jextract;
 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.rmi,
 187         java.security.jgss,
 188         java.sql,
 189         java.xml,
 190         jdk.attach,
 191         jdk.charsets,
 192         jdk.compiler,
 193         java.net.http,
 194         jdk.jfr,
 195         jdk.jlink,
 196         jdk.jshell,
 197         jdk.net,
 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         jdk.unsupported;
 215     exports jdk.internal.reflect to
 216         java.logging,
 217         java.sql,
 218         java.sql.rowset,
 219         jdk.dynalink,
 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         jdk.unsupported;
 257     exports sun.nio.cs to
 258         jdk.charsets;
 259     exports sun.nio.fs to
 260         jdk.unsupported;
 261     exports sun.reflect.annotation to
 262         jdk.compiler;
 263     exports sun.reflect.generics.reflectiveObjects to
 264         java.desktop;
 265     exports sun.reflect.misc to
 266         java.desktop,
 267         java.datatransfer,
 268         java.management,
 269         java.management.rmi,
 270         java.rmi,
 271         java.sql.rowset;
 272     exports sun.security.action to
 273         java.desktop,
 274         java.security.jgss;
 275     exports sun.security.internal.interfaces to
 276         jdk.crypto.cryptoki;
 277     exports sun.security.internal.spec to
 278         jdk.crypto.cryptoki;
 279     exports sun.security.jca to
 280         java.smartcardio,
 281         jdk.crypto.ec,
 282         jdk.crypto.cryptoki,
 283         jdk.naming.dns;
 284     exports sun.security.pkcs to
 285         jdk.crypto.ec,
 286         jdk.jartool;
 287     exports sun.security.provider to
 288         java.rmi,
 289         java.security.jgss,
 290         jdk.crypto.cryptoki,
 291         jdk.security.auth;
 292     exports sun.security.provider.certpath to
 293         java.naming;
 294     exports sun.security.rsa to
 295         jdk.crypto.cryptoki;
 296     exports sun.security.timestamp to
 297         jdk.jartool;
 298     exports sun.security.tools to
 299         jdk.jartool;
 300     exports sun.security.util to
 301         java.desktop,
 302         java.naming,
 303         java.rmi,
 304         java.security.jgss,
 305         java.security.sasl,
 306         java.smartcardio,
 307         java.xml.crypto,
 308         jdk.crypto.ec,
 309         jdk.crypto.cryptoki,
 310         jdk.jartool,
 311         jdk.security.auth,
 312         jdk.security.jgss;
 313     exports sun.security.util.math to
 314         jdk.crypto.ec;
 315     exports sun.security.util.math.intpoly to
 316         jdk.crypto.ec;
 317     exports sun.security.x509 to
 318         jdk.crypto.ec,
 319         jdk.crypto.cryptoki,
 320         jdk.jartool;
 321     exports sun.security.validator to
 322         jdk.jartool;
 323     exports sun.util.cldr to
 324         jdk.jlink;
 325     exports sun.util.locale.provider to
 326         java.desktop,
 327         jdk.jlink,
 328         jdk.localedata;
 329     exports sun.util.logging to
 330         java.desktop,
 331         java.logging,
 332         java.prefs;
 333     exports sun.util.resources to
 334         jdk.localedata;
 335 
 336 
 337     // the service types defined by the APIs in this module
 338 
 339     uses java.lang.System.LoggerFinder;
 340     uses java.net.ContentHandlerFactory;
 341     uses java.net.spi.URLStreamHandlerProvider;
 342     uses java.nio.channels.spi.AsynchronousChannelProvider;
 343     uses java.nio.channels.spi.SelectorProvider;
 344     uses java.nio.charset.spi.CharsetProvider;
 345     uses java.nio.file.spi.FileSystemProvider;
 346     uses java.nio.file.spi.FileTypeDetector;
 347     uses java.security.Provider;
 348     uses java.text.spi.BreakIteratorProvider;
 349     uses java.text.spi.CollatorProvider;
 350     uses java.text.spi.DateFormatProvider;
 351     uses java.text.spi.DateFormatSymbolsProvider;
 352     uses java.text.spi.DecimalFormatSymbolsProvider;
 353     uses java.text.spi.NumberFormatProvider;
 354     uses java.time.chrono.AbstractChronology;
 355     uses java.time.chrono.Chronology;
 356     uses java.time.zone.ZoneRulesProvider;
 357     uses java.util.spi.CalendarDataProvider;
 358     uses java.util.spi.CalendarNameProvider;
 359     uses java.util.spi.CurrencyNameProvider;
 360     uses java.util.spi.LocaleNameProvider;
 361     uses java.util.spi.ResourceBundleControlProvider;
 362     uses java.util.spi.ResourceBundleProvider;
 363     uses java.util.spi.TimeZoneNameProvider;
 364     uses java.util.spi.ToolProvider;
 365     uses javax.security.auth.spi.LoginModule;
 366 
 367     // JDK-internal service types
 368 
 369     uses jdk.internal.logger.DefaultLoggerFinder;
 370     uses sun.text.spi.JavaTimeDateTimePatternProvider;
 371     uses sun.util.spi.CalendarProvider;
 372     uses sun.util.locale.provider.LocaleDataMetaInfo;
 373     uses sun.util.resources.LocaleData.CommonResourceBundleProvider;
 374     uses sun.util.resources.LocaleData.SupplementaryResourceBundleProvider;
 375 
 376     // Built-in service providers that are located via ServiceLoader
 377 
 378     provides java.nio.file.spi.FileSystemProvider with
 379         jdk.internal.jrtfs.JrtFileSystemProvider;
 380 }
--- EOF ---