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