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