1 /*
  2  * Copyright (c) 2014, 2020, 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 class="notes">
 30  * <dt>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.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 sun.invoke.util to
137         jdk.compiler,
138         jdk.incubator.foreign;
139     exports com.sun.security.ntlm to
140         java.security.sasl;
141     exports jdk.internal to
142         java.compiler,
143         jdk.jfr,
144         jdk.compiler,
145         jdk.jshell;
146     exports jdk.internal.access to
147         java.desktop,
148         java.logging,
149         java.management,
150         java.naming,
151         java.rmi,
152         jdk.jartool,
153         jdk.jlink,
154         jdk.net,
155         jdk.incubator.foreign;
156     exports jdk.internal.access.foreign to
157         jdk.incubator.foreign;
158     exports jdk.internal.event to
159         jdk.jfr;
160     exports jdk.internal.jimage to
161         jdk.jlink;
162     exports jdk.internal.jimage.decompressor to
163         jdk.jlink;
164     exports jdk.internal.loader to
165         java.instrument,
166         java.logging,
167         java.naming;
168     exports jdk.internal.jmod to
169         jdk.compiler,
170         jdk.jlink;
171     exports jdk.internal.logger to
172         java.logging;
173     exports jdk.internal.org.objectweb.asm to
174         jdk.jartool,
175         jdk.jfr,
176         jdk.jlink;
177     exports jdk.internal.org.objectweb.asm.tree to
178         jdk.jfr,
179         jdk.jlink;
180     exports jdk.internal.org.objectweb.asm.util to
181         jdk.jfr;
182     exports jdk.internal.org.objectweb.asm.commons to
183         jdk.jfr;
184     exports jdk.internal.org.xml.sax to
185         jdk.jfr;
186     exports jdk.internal.org.xml.sax.helpers to
187         jdk.jfr;
188     exports jdk.internal.misc to
189         java.desktop,
190         java.logging,
191         java.management,
192         java.naming,
193         java.net.http,
194         java.rmi,
195         java.security.jgss,
196         java.xml,
197         jdk.attach,
198         jdk.charsets,
199         jdk.compiler,
200         jdk.jfr,
201         jdk.jshell,
202         jdk.nio.mapmode,
203         jdk.unsupported,
204         jdk.internal.vm.ci,
205         jdk.incubator.foreign;
206     exports jdk.internal.module to
207         java.instrument,
208         java.management.rmi,
209         jdk.jartool,
210         jdk.jfr,
211         jdk.jlink,
212         jdk.incubator.jpackage;
213     exports jdk.internal.perf to
214         java.management,
215         jdk.management.agent,
216         jdk.internal.jvmstat;
217     exports jdk.internal.platform to
218         jdk.management;
219     exports jdk.internal.ref to
220         java.desktop;
221     exports jdk.internal.reflect to
222         java.logging,
223         java.sql,
224         java.sql.rowset,
225         jdk.dynalink,
226         jdk.internal.vm.ci,
227         jdk.unsupported;
228     exports jdk.internal.vm to
229         jdk.internal.jvmstat,
230         jdk.management.agent;
231     exports jdk.internal.vm.annotation to
232         jdk.internal.vm.ci,
233         jdk.incubator.foreign,
234         jdk.unsupported;
235     exports jdk.internal.util to
236             jdk.incubator.foreign;
237     exports jdk.internal.util.jar to
238         jdk.jartool;
239     exports jdk.internal.util.xml to
240         jdk.jfr;
241     exports jdk.internal.util.xml.impl to
242         jdk.jfr;
243     exports sun.net to
244         java.net.http,
245         jdk.naming.dns;
246     exports sun.net.ext to
247         jdk.net;
248     exports sun.net.dns to
249         java.security.jgss,
250         jdk.naming.dns;
251     exports sun.net.util to
252         java.desktop,
253         java.net.http,
254         jdk.jconsole,
255         jdk.sctp;
256     exports sun.net.www to
257         java.net.http,
258         jdk.jartool;
259     exports sun.net.www.protocol.http to
260         java.security.jgss;
261     exports sun.nio.ch to
262         java.management,
263         jdk.crypto.cryptoki,
264         jdk.net,
265         jdk.sctp,
266         jdk.incubator.foreign;
267     exports sun.nio.cs to
268         jdk.charsets;
269     exports sun.reflect.annotation to
270         jdk.compiler;
271     exports sun.reflect.generics.reflectiveObjects to
272         java.desktop;
273     exports sun.reflect.misc to
274         java.desktop,
275         java.datatransfer,
276         java.management,
277         java.management.rmi,
278         java.rmi,
279         java.sql.rowset;
280     exports sun.security.action to
281         java.desktop,
282         java.security.jgss,
283         jdk.crypto.ec,
284         jdk.incubator.foreign;
285     exports sun.security.internal.interfaces to
286         jdk.crypto.cryptoki;
287     exports sun.security.internal.spec to
288         jdk.crypto.cryptoki;
289     exports sun.security.jca to
290         java.smartcardio,
291         jdk.crypto.ec,
292         jdk.crypto.cryptoki,
293         jdk.naming.dns;
294     exports sun.security.pkcs to
295         jdk.crypto.ec,
296         jdk.jartool;
297     exports sun.security.provider to
298         java.rmi,
299         java.security.jgss,
300         jdk.crypto.cryptoki,
301         jdk.crypto.ec,
302         jdk.security.auth;
303     exports sun.security.provider.certpath to
304         java.naming;
305     exports sun.security.rsa to
306         jdk.crypto.cryptoki;
307     exports sun.security.timestamp to
308         jdk.jartool;
309     exports sun.security.tools to
310         jdk.jartool;
311     exports sun.security.util to
312         java.desktop,
313         java.naming,
314         java.rmi,
315         java.security.jgss,
316         java.security.sasl,
317         java.smartcardio,
318         java.xml.crypto,
319         jdk.crypto.ec,
320         jdk.crypto.cryptoki,
321         jdk.jartool,
322         jdk.security.auth,
323         jdk.security.jgss;
324     exports sun.security.util.math to
325         jdk.crypto.ec;
326     exports sun.security.util.math.intpoly to
327         jdk.crypto.ec;
328     exports sun.security.x509 to
329         jdk.crypto.ec,
330         jdk.crypto.cryptoki,
331         jdk.jartool;
332     exports sun.security.validator to
333         jdk.jartool;
334     exports sun.util.cldr to
335         jdk.jlink;
336     exports sun.util.locale.provider to
337         java.desktop,
338         jdk.jlink,
339         jdk.localedata;
340     exports sun.util.logging to
341         java.desktop,
342         java.logging,
343         java.prefs;
344     exports sun.util.resources to
345         jdk.localedata;
346 
347 
348     // the service types defined by the APIs in this module
349 
350     uses java.lang.System.LoggerFinder;
351     uses java.net.ContentHandlerFactory;
352     uses java.net.spi.URLStreamHandlerProvider;
353     uses java.nio.channels.spi.AsynchronousChannelProvider;
354     uses java.nio.channels.spi.SelectorProvider;
355     uses java.nio.charset.spi.CharsetProvider;
356     uses java.nio.file.spi.FileSystemProvider;
357     uses java.nio.file.spi.FileTypeDetector;
358     uses java.security.Provider;
359     uses java.text.spi.BreakIteratorProvider;
360     uses java.text.spi.CollatorProvider;
361     uses java.text.spi.DateFormatProvider;
362     uses java.text.spi.DateFormatSymbolsProvider;
363     uses java.text.spi.DecimalFormatSymbolsProvider;
364     uses java.text.spi.NumberFormatProvider;
365     uses java.time.chrono.AbstractChronology;
366     uses java.time.chrono.Chronology;
367     uses java.time.zone.ZoneRulesProvider;
368     uses java.util.spi.CalendarDataProvider;
369     uses java.util.spi.CalendarNameProvider;
370     uses java.util.spi.CurrencyNameProvider;
371     uses java.util.spi.LocaleNameProvider;
372     uses java.util.spi.ResourceBundleControlProvider;
373     uses java.util.spi.ResourceBundleProvider;
374     uses java.util.spi.TimeZoneNameProvider;
375     uses java.util.spi.ToolProvider;
376     uses javax.security.auth.spi.LoginModule;
377 
378     // JDK-internal service types
379 
380     uses jdk.internal.logger.DefaultLoggerFinder;
381     uses sun.text.spi.JavaTimeDateTimePatternProvider;
382     uses sun.util.spi.CalendarProvider;
383     uses sun.util.locale.provider.LocaleDataMetaInfo;
384     uses sun.util.resources.LocaleData.CommonResourceBundleProvider;
385     uses sun.util.resources.LocaleData.SupplementaryResourceBundleProvider;
386 
387     // Built-in service providers that are located via ServiceLoader
388 
389     provides java.nio.file.spi.FileSystemProvider with
390         jdk.internal.jrtfs.JrtFileSystemProvider;
391 }