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