Path: blob/master/src/java.base/share/classes/module-info.java
41145 views
/*1* Copyright (c) 2014, 2021, Oracle and/or its affiliates. All rights reserved.2* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.3*4* This code is free software; you can redistribute it and/or modify it5* under the terms of the GNU General Public License version 2 only, as6* published by the Free Software Foundation. Oracle designates this7* particular file as subject to the "Classpath" exception as provided8* by Oracle in the LICENSE file that accompanied this code.9*10* This code is distributed in the hope that it will be useful, but WITHOUT11* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or12* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License13* version 2 for more details (a copy is included in the LICENSE file that14* accompanied this code).15*16* You should have received a copy of the GNU General Public License version17* 2 along with this work; if not, write to the Free Software Foundation,18* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.19*20* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA21* or visit www.oracle.com if you need additional information or have any22* questions.23*/2425/**26* Defines the foundational APIs of the Java SE Platform.27*28* <dl class="notes">29* <dt>Providers:</dt>30* <dd> The JDK implementation of this module provides an implementation of31* the {@index jrt jrt} {@linkplain java.nio.file.spi.FileSystemProvider32* file system provider} to enumerate and read the class and resource33* files in a run-time image.34* The jrt file system can be created by calling35* {@link java.nio.file.FileSystems#newFileSystem36* FileSystems.newFileSystem(URI.create("jrt:/"))}.37* </dd>38* </dl>39*40* @toolGuide java java launcher41* @toolGuide keytool42*43* @provides java.nio.file.spi.FileSystemProvider44*45* @uses java.lang.System.LoggerFinder46* @uses java.net.ContentHandlerFactory47* @uses java.net.spi.URLStreamHandlerProvider48* @uses java.nio.channels.spi.AsynchronousChannelProvider49* @uses java.nio.channels.spi.SelectorProvider50* @uses java.nio.charset.spi.CharsetProvider51* @uses java.nio.file.spi.FileSystemProvider52* @uses java.nio.file.spi.FileTypeDetector53* @uses java.security.Provider54* @uses java.text.spi.BreakIteratorProvider55* @uses java.text.spi.CollatorProvider56* @uses java.text.spi.DateFormatProvider57* @uses java.text.spi.DateFormatSymbolsProvider58* @uses java.text.spi.DecimalFormatSymbolsProvider59* @uses java.text.spi.NumberFormatProvider60* @uses java.time.chrono.AbstractChronology61* @uses java.time.chrono.Chronology62* @uses java.time.zone.ZoneRulesProvider63* @uses java.util.spi.CalendarDataProvider64* @uses java.util.spi.CalendarNameProvider65* @uses java.util.spi.CurrencyNameProvider66* @uses java.util.spi.LocaleNameProvider67* @uses java.util.spi.ResourceBundleControlProvider68* @uses java.util.spi.ResourceBundleProvider69* @uses java.util.spi.TimeZoneNameProvider70* @uses java.util.spi.ToolProvider71* @uses javax.security.auth.spi.LoginModule72*73* @moduleGraph74* @since 975*/76module java.base {7778exports java.io;79exports java.lang;80exports java.lang.annotation;81exports java.lang.constant;82exports java.lang.invoke;83exports java.lang.module;84exports java.lang.ref;85exports java.lang.reflect;86exports java.lang.runtime;87exports java.math;88exports java.net;89exports java.net.spi;90exports java.nio;91exports java.nio.channels;92exports java.nio.channels.spi;93exports java.nio.charset;94exports java.nio.charset.spi;95exports java.nio.file;96exports java.nio.file.attribute;97exports java.nio.file.spi;98exports java.security;99exports java.security.cert;100exports java.security.interfaces;101exports java.security.spec;102exports java.text;103exports java.text.spi;104exports java.time;105exports java.time.chrono;106exports java.time.format;107exports java.time.temporal;108exports java.time.zone;109exports java.util;110exports java.util.concurrent;111exports java.util.concurrent.atomic;112exports java.util.concurrent.locks;113exports java.util.function;114exports java.util.jar;115exports java.util.random;116exports java.util.regex;117exports java.util.spi;118exports java.util.stream;119exports java.util.zip;120exports javax.crypto;121exports javax.crypto.interfaces;122exports javax.crypto.spec;123exports javax.net;124exports javax.net.ssl;125exports javax.security.auth;126exports javax.security.auth.callback;127exports javax.security.auth.login;128exports javax.security.auth.spi;129exports javax.security.auth.x500;130exports javax.security.cert;131132133// additional qualified exports may be inserted at build time134// see make/gensrc/GenModuleInfo.gmk135136exports com.sun.crypto.provider to137jdk.crypto.cryptoki;138exports sun.invoke.util to139jdk.compiler,140jdk.incubator.foreign;141exports com.sun.security.ntlm to142java.security.sasl;143exports jdk.internal.javac to144java.compiler,145jdk.compiler,146jdk.jshell;147exports jdk.internal.access to148java.desktop,149java.logging,150java.management,151java.naming,152java.rmi,153jdk.jartool,154jdk.jlink,155jdk.net,156jdk.incubator.foreign;157exports jdk.internal.access.foreign to158jdk.incubator.foreign;159exports jdk.internal.event to160jdk.jfr;161exports jdk.internal.jimage to162jdk.jlink;163exports jdk.internal.jimage.decompressor to164jdk.jlink;165exports jdk.internal.loader to166java.instrument,167java.logging,168java.naming,169jdk.incubator.foreign;170exports jdk.internal.jmod to171jdk.compiler,172jdk.jlink;173exports jdk.internal.logger to174java.logging;175exports jdk.internal.org.objectweb.asm to176jdk.jartool,177jdk.jfr,178jdk.jlink;179exports jdk.internal.org.objectweb.asm.tree to180jdk.jfr,181jdk.jlink;182exports jdk.internal.org.objectweb.asm.util to183jdk.jfr;184exports jdk.internal.org.objectweb.asm.commons to185jdk.jfr;186exports jdk.internal.org.xml.sax to187jdk.jfr;188exports jdk.internal.org.xml.sax.helpers to189jdk.jfr;190exports jdk.internal.misc to191java.desktop,192java.logging,193java.management,194java.naming,195java.net.http,196java.rmi,197java.security.jgss,198jdk.attach,199jdk.charsets,200jdk.compiler,201jdk.incubator.vector,202jdk.jfr,203jdk.jshell,204jdk.nio.mapmode,205jdk.unsupported,206jdk.internal.vm.ci,207jdk.incubator.foreign;208exports jdk.internal.module to209java.instrument,210java.management.rmi,211jdk.jartool,212jdk.jfr,213jdk.jlink,214jdk.jpackage,215jdk.incubator.foreign;216exports jdk.internal.perf to217java.management,218jdk.management.agent,219jdk.internal.jvmstat;220exports jdk.internal.platform to221jdk.management,222jdk.jfr;223exports jdk.internal.ref to224java.desktop,225jdk.incubator.foreign;226exports jdk.internal.reflect to227java.logging,228java.sql,229java.sql.rowset,230jdk.dynalink,231jdk.internal.vm.ci,232jdk.unsupported,233jdk.incubator.foreign;234exports jdk.internal.vm to235jdk.internal.jvmstat,236jdk.management.agent;237exports jdk.internal.vm.annotation to238java.instrument,239jdk.internal.vm.ci,240jdk.incubator.vector,241jdk.incubator.foreign,242jdk.jfr,243jdk.unsupported;244exports jdk.internal.vm.vector to245jdk.incubator.vector;246exports jdk.internal.util to247jdk.incubator.foreign;248exports jdk.internal.util.jar to249jdk.jartool;250exports jdk.internal.util.xml to251jdk.jfr;252exports jdk.internal.util.xml.impl to253jdk.jfr;254exports jdk.internal.util.random to255jdk.random;256exports sun.net to257java.net.http,258jdk.naming.dns;259exports sun.net.ext to260jdk.net;261exports sun.net.dns to262java.security.jgss,263jdk.naming.dns;264exports sun.net.util to265java.desktop,266java.net.http,267jdk.jconsole,268jdk.sctp;269exports sun.net.www to270java.net.http,271jdk.jartool;272exports sun.net.www.protocol.http to273java.security.jgss;274exports sun.nio.ch to275java.management,276jdk.crypto.cryptoki,277jdk.net,278jdk.sctp,279jdk.incubator.foreign;280exports sun.nio.cs to281jdk.charsets;282exports sun.nio.fs to283jdk.net;284exports sun.reflect.annotation to285jdk.compiler;286exports sun.reflect.generics.reflectiveObjects to287java.desktop;288exports sun.reflect.misc to289java.desktop,290java.datatransfer,291java.management,292java.management.rmi,293java.rmi,294java.sql.rowset;295exports sun.security.action to296java.desktop,297java.security.jgss,298jdk.crypto.ec,299jdk.incubator.foreign;300exports sun.security.internal.interfaces to301jdk.crypto.cryptoki;302exports sun.security.internal.spec to303jdk.crypto.cryptoki;304exports sun.security.jca to305java.smartcardio,306jdk.crypto.ec,307jdk.crypto.cryptoki,308jdk.naming.dns;309exports sun.security.pkcs to310jdk.crypto.ec,311jdk.jartool;312exports sun.security.provider to313java.rmi,314java.security.jgss,315jdk.crypto.cryptoki,316jdk.crypto.ec,317jdk.security.auth;318exports sun.security.provider.certpath to319java.naming;320exports sun.security.rsa to321jdk.crypto.cryptoki;322exports sun.security.timestamp to323jdk.jartool;324exports sun.security.tools to325jdk.jartool;326exports sun.security.util to327java.desktop,328java.naming,329java.rmi,330java.security.jgss,331java.security.sasl,332java.smartcardio,333java.xml.crypto,334jdk.crypto.ec,335jdk.crypto.cryptoki,336jdk.jartool,337jdk.security.auth,338jdk.security.jgss;339exports sun.security.util.math to340jdk.crypto.ec;341exports sun.security.util.math.intpoly to342jdk.crypto.ec;343exports sun.security.x509 to344jdk.crypto.ec,345jdk.crypto.cryptoki,346jdk.jartool;347exports sun.security.validator to348jdk.jartool;349exports sun.util.cldr to350jdk.jlink;351exports sun.util.locale.provider to352java.desktop,353jdk.jlink,354jdk.localedata;355exports sun.util.logging to356java.desktop,357java.logging,358java.prefs;359exports sun.util.resources to360jdk.localedata;361exports jdk.internal.invoke to362jdk.incubator.foreign;363364// the service types defined by the APIs in this module365366uses java.lang.System.LoggerFinder;367uses java.net.ContentHandlerFactory;368uses java.net.spi.URLStreamHandlerProvider;369uses java.nio.channels.spi.AsynchronousChannelProvider;370uses java.nio.channels.spi.SelectorProvider;371uses java.nio.charset.spi.CharsetProvider;372uses java.nio.file.spi.FileSystemProvider;373uses java.nio.file.spi.FileTypeDetector;374uses java.security.Provider;375uses java.text.spi.BreakIteratorProvider;376uses java.text.spi.CollatorProvider;377uses java.text.spi.DateFormatProvider;378uses java.text.spi.DateFormatSymbolsProvider;379uses java.text.spi.DecimalFormatSymbolsProvider;380uses java.text.spi.NumberFormatProvider;381uses java.time.chrono.AbstractChronology;382uses java.time.chrono.Chronology;383uses java.time.zone.ZoneRulesProvider;384uses java.util.random.RandomGenerator;385uses java.util.spi.CalendarDataProvider;386uses java.util.spi.CalendarNameProvider;387uses java.util.spi.CurrencyNameProvider;388uses java.util.spi.LocaleNameProvider;389uses java.util.spi.ResourceBundleControlProvider;390uses java.util.spi.ResourceBundleProvider;391uses java.util.spi.TimeZoneNameProvider;392uses java.util.spi.ToolProvider;393uses javax.security.auth.spi.LoginModule;394395// JDK-internal service types396397uses jdk.internal.logger.DefaultLoggerFinder;398uses sun.text.spi.JavaTimeDateTimePatternProvider;399uses sun.util.spi.CalendarProvider;400uses sun.util.locale.provider.LocaleDataMetaInfo;401uses sun.util.resources.LocaleData.CommonResourceBundleProvider;402uses sun.util.resources.LocaleData.SupplementaryResourceBundleProvider;403404// Built-in service providers that are located via ServiceLoader405406provides java.nio.file.spi.FileSystemProvider with407jdk.internal.jrtfs.JrtFileSystemProvider;408409provides java.util.random.RandomGenerator with410java.security.SecureRandom,411java.util.Random,412java.util.SplittableRandom;413414}415416417