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