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