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