1 /*
2 * Copyright (c) 2014, 2026, 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#getFileSystem
37 * FileSystems.getFileSystem(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.format.DateTimeFormatterPatternProvider
64 * @uses java.time.zone.ZoneRulesProvider
65 * @uses java.util.spi.CalendarDataProvider
66 * @uses java.util.spi.CalendarNameProvider
67 * @uses java.util.spi.CurrencyNameProvider
68 * @uses java.util.spi.LocaleNameProvider
69 * @uses java.util.spi.ResourceBundleControlProvider
70 * @uses java.util.spi.ResourceBundleProvider
71 * @uses java.util.spi.TimeZoneNameProvider
72 * @uses java.util.spi.ToolProvider
73 * @uses javax.security.auth.spi.LoginModule
74 *
75 * @moduleGraph
76 * @since 9
77 */
78 module java.base {
79
80 exports java.io;
81 exports java.lang;
82 exports java.lang.annotation;
83 exports java.lang.classfile;
84 exports java.lang.classfile.attribute;
85 exports java.lang.classfile.constantpool;
86 exports java.lang.classfile.instruction;
87 exports java.lang.constant;
88 exports java.lang.foreign;
89 exports java.lang.invoke;
90 exports java.lang.module;
91 exports java.lang.ref;
92 exports java.lang.reflect;
93 exports java.lang.runtime;
94 exports java.math;
95 exports java.net;
96 exports java.net.spi;
97 exports java.nio;
98 exports java.nio.channels;
99 exports java.nio.channels.spi;
100 exports java.nio.charset;
101 exports java.nio.charset.spi;
102 exports java.nio.file;
103 exports java.nio.file.attribute;
104 exports java.nio.file.spi;
105 exports java.security;
106 exports java.security.cert;
107 exports java.security.interfaces;
108 exports java.security.spec;
109 exports java.text;
110 exports java.text.spi;
111 exports java.time;
112 exports java.time.chrono;
113 exports java.time.format;
114 exports java.time.temporal;
115 exports java.time.zone;
116 exports java.util;
117 exports java.util.concurrent;
118 exports java.util.concurrent.atomic;
119 exports java.util.concurrent.locks;
120 exports java.util.function;
121 exports java.util.jar;
122 exports java.util.random;
123 exports java.util.regex;
124 exports java.util.spi;
125 exports java.util.stream;
126 exports java.util.zip;
127 exports javax.crypto;
128 exports javax.crypto.interfaces;
129 exports javax.crypto.spec;
130 exports javax.net;
131 exports javax.net.ssl;
132 exports javax.security.auth;
133 exports javax.security.auth.callback;
134 exports javax.security.auth.login;
135 exports javax.security.auth.spi;
136 exports javax.security.auth.x500;
137 exports javax.security.cert;
138
139 // additional qualified exports may be inserted at build time
140 // see make/gensrc/GenModuleInfo.gmk
141
142 exports com.sun.crypto.provider to
143 jdk.crypto.cryptoki;
144 exports sun.invoke.util to
145 jdk.compiler;
146 exports com.sun.security.ntlm to
147 java.security.sasl;
148 exports jdk.internal to
149 jdk.incubator.vector;
150 // Note: all modules in the exported list participate in preview features,
151 // normal or reflective. They do not need to be compiled with "--enable-preview"
152 // to use preview features and do not need to suppress "preview" warnings.
153 // It is recommended for any modules that do participate that their
154 // module declaration be annotated with jdk.internal.javac.ParticipatesInPreview.
155 exports jdk.internal.javac to
156 java.compiler,
157 jdk.compiler;
158 exports jdk.internal.access to
159 java.desktop,
160 java.logging,
161 java.management,
162 java.rmi,
163 jdk.charsets,
164 jdk.jartool,
165 jdk.jlink,
166 jdk.jfr,
167 jdk.management,
168 jdk.net,
169 jdk.sctp,
170 jdk.crypto.cryptoki;
171 exports jdk.internal.classfile.components to
172 jdk.jfr;
173 exports jdk.internal.foreign to
174 jdk.incubator.vector;
175 exports jdk.internal.event to
176 jdk.jfr;
177 exports jdk.internal.io to
178 jdk.internal.le,
179 jdk.jshell;
180 exports jdk.internal.jimage to
181 jdk.jlink;
182 exports jdk.internal.jimage.decompressor to
183 jdk.jlink;
184 exports jdk.internal.loader to
185 java.instrument,
186 java.logging,
187 java.naming;
188 exports jdk.internal.jmod to
189 jdk.compiler,
190 jdk.jlink;
191 exports jdk.internal.logger to
192 java.logging;
193 exports jdk.internal.net.quic to
194 java.net.http;
195 exports jdk.internal.org.xml.sax to
196 jdk.jfr;
197 exports jdk.internal.org.xml.sax.helpers to
198 jdk.jfr;
199 exports jdk.internal.misc to
200 java.desktop,
201 java.logging,
202 java.management,
203 java.naming,
204 java.net.http,
205 java.rmi,
206 java.security.jgss,
207 jdk.attach,
208 jdk.charsets,
209 jdk.compiler,
210 jdk.crypto.cryptoki,
211 jdk.incubator.vector,
212 jdk.jfr,
213 jdk.jshell,
214 jdk.nio.mapmode,
215 jdk.unsupported;
216 exports jdk.internal.module to
217 java.instrument,
218 java.management.rmi,
219 jdk.jartool,
220 jdk.compiler,
221 jdk.jfr,
222 jdk.jlink,
223 jdk.jpackage;
224 exports jdk.internal.perf to
225 java.management,
226 jdk.management.agent,
227 jdk.internal.jvmstat;
228 exports jdk.internal.platform to
229 jdk.management,
230 jdk.jfr;
231 exports jdk.internal.ref to
232 java.desktop,
233 java.net.http,
234 jdk.naming.dns;
235 exports jdk.internal.reflect to
236 java.logging,
237 java.sql,
238 java.sql.rowset,
239 jdk.dynalink,
240 jdk.unsupported;
241 exports jdk.internal.vm to
242 java.management,
243 jdk.internal.jvmstat,
244 jdk.management,
245 jdk.management.agent,
246 jdk.jfr;
247 exports jdk.internal.vm.annotation to
248 java.instrument,
249 jdk.incubator.vector,
250 jdk.jfr,
251 jdk.unsupported;
252 exports jdk.internal.vm.vector to
253 jdk.incubator.vector;
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 to
259 java.desktop,
260 java.prefs,
261 java.security.jgss,
262 java.smartcardio,
263 java.naming,
264 java.rmi,
265 java.net.http,
266 jdk.charsets,
267 jdk.incubator.vector,
268 jdk.httpserver,
269 jdk.jlink,
270 jdk.jpackage,
271 jdk.net,
272 jdk.security.auth;
273 exports sun.net to
274 java.net.http,
275 jdk.naming.dns;
276 exports sun.net.ext to
277 jdk.net;
278 exports sun.net.dns to
279 java.security.jgss,
280 jdk.naming.dns;
281 exports sun.net.util to
282 java.net.http,
283 jdk.jconsole,
284 jdk.sctp;
285 exports sun.net.www to
286 java.net.http,
287 jdk.jartool;
288 exports sun.net.www.protocol.http to
289 java.security.jgss;
290 exports sun.nio.ch to
291 java.management,
292 jdk.crypto.cryptoki,
293 jdk.net,
294 jdk.sctp;
295 exports sun.nio.cs to
296 jdk.charsets;
297 exports sun.nio.fs to
298 jdk.net;
299 exports sun.reflect.annotation to
300 jdk.compiler;
301 exports sun.reflect.generics.reflectiveObjects to
302 java.desktop;
303 exports sun.reflect.misc to
304 java.desktop,
305 java.management;
306 exports sun.security.internal.interfaces to
307 jdk.crypto.cryptoki;
308 exports sun.security.internal.spec to
309 jdk.crypto.cryptoki;
310 exports sun.security.jca to
311 java.security.sasl,
312 java.smartcardio,
313 jdk.crypto.cryptoki,
314 jdk.naming.dns;
315 exports sun.security.pkcs to
316 jdk.jartool;
317 exports sun.security.provider to
318 java.security.jgss,
319 jdk.crypto.cryptoki,
320 jdk.security.auth;
321 exports sun.security.provider.certpath to
322 java.naming,
323 jdk.jartool;
324 exports sun.security.rsa to
325 jdk.crypto.cryptoki;
326 exports sun.security.timestamp to
327 jdk.jartool;
328 exports sun.security.tools to
329 jdk.jartool;
330 exports sun.security.util to
331 java.naming,
332 java.security.jgss,
333 java.security.sasl,
334 java.smartcardio,
335 java.xml.crypto,
336 jdk.crypto.cryptoki,
337 jdk.jartool,
338 jdk.security.auth,
339 jdk.security.jgss;
340 exports sun.security.x509 to
341 jdk.crypto.cryptoki,
342 jdk.jartool;
343 exports sun.security.validator to
344 jdk.jartool;
345 exports sun.util.cldr to
346 jdk.jlink;
347 exports sun.util.locale.provider to
348 java.desktop,
349 jdk.jlink,
350 jdk.localedata;
351 exports sun.util.logging to
352 java.desktop,
353 java.logging,
354 java.prefs;
355 exports sun.util.resources to
356 jdk.localedata;
357
358 // the service types defined by the APIs in this module
359
360 uses java.lang.System.LoggerFinder;
361 uses java.net.ContentHandlerFactory;
362 uses java.net.spi.InetAddressResolverProvider;
363 uses java.net.spi.URLStreamHandlerProvider;
364 uses java.nio.channels.spi.AsynchronousChannelProvider;
365 uses java.nio.channels.spi.SelectorProvider;
366 uses java.nio.charset.spi.CharsetProvider;
367 uses java.nio.file.spi.FileSystemProvider;
368 uses java.nio.file.spi.FileTypeDetector;
369 uses java.security.Provider;
370 uses java.text.spi.BreakIteratorProvider;
371 uses java.text.spi.CollatorProvider;
372 uses java.text.spi.DateFormatProvider;
373 uses java.text.spi.DateFormatSymbolsProvider;
374 uses java.text.spi.DecimalFormatSymbolsProvider;
375 uses java.text.spi.NumberFormatProvider;
376 uses java.time.chrono.AbstractChronology;
377 uses java.time.chrono.Chronology;
378 uses java.time.format.DateTimeFormatterPatternProvider;
379 uses java.time.zone.ZoneRulesProvider;
380 uses java.util.spi.CalendarDataProvider;
381 uses java.util.spi.CalendarNameProvider;
382 uses java.util.spi.CurrencyNameProvider;
383 uses java.util.spi.LocaleNameProvider;
384 uses java.util.spi.ResourceBundleControlProvider;
385 uses java.util.spi.ResourceBundleProvider;
386 uses java.util.spi.TimeZoneNameProvider;
387 uses java.util.spi.ToolProvider;
388 uses javax.security.auth.spi.LoginModule;
389
390 // JDK-internal service types
391
392 uses jdk.internal.io.JdkConsoleProvider;
393 uses jdk.internal.logger.DefaultLoggerFinder;
394 uses sun.util.spi.CalendarProvider;
395 uses sun.util.locale.provider.LocaleDataMetaInfo;
396 uses sun.util.resources.LocaleData.LocaleDataResourceBundleProvider;
397
398 // Built-in service providers that are located via ServiceLoader
399
400 provides java.nio.file.spi.FileSystemProvider with
401 jdk.internal.jrtfs.JrtFileSystemProvider;
402
403 }
--- EOF ---