1 /* 2 * Copyright (c) 2014, 2018, 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 * <dt class="simpleTagLabel" style="font-family:'DejaVu Sans', Arial, Helvetica, sans serif">Tool Guides:</dt> 40 * <dd style="font-family:'DejaVu Sans', Arial, Helvetica, sans serif"> {@extLink java_tool_reference java launcher}, 41 * {@extLink keytool_tool_reference keytool}</dd> 42 * </dl> 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.math; 88 exports java.net; 89 exports java.net.spi; 90 exports java.foreign; 91 exports java.foreign.annotations; 92 exports java.foreign.memory; 93 exports java.foreign.layout; 94 exports java.nio; 95 exports java.nio.channels; 96 exports java.nio.channels.spi; 97 exports java.nio.charset; 98 exports java.nio.charset.spi; 99 exports java.nio.file; 100 exports java.nio.file.attribute; 101 exports java.nio.file.spi; 102 exports java.security; 103 exports java.security.acl; 104 exports java.security.cert; 105 exports java.security.interfaces; 106 exports java.security.spec; 107 exports java.text; 108 exports java.text.spi; 109 exports java.time; 110 exports java.time.chrono; 111 exports java.time.format; 112 exports java.time.temporal; 113 exports java.time.zone; 114 exports java.util; 115 exports java.util.concurrent; 116 exports java.util.concurrent.atomic; 117 exports java.util.concurrent.locks; 118 exports java.util.function; 119 exports java.util.jar; 120 exports java.util.regex; 121 exports java.util.spi; 122 exports java.util.stream; 123 exports java.util.zip; 124 exports javax.crypto; 125 exports javax.crypto.interfaces; 126 exports javax.crypto.spec; 127 exports javax.net; 128 exports javax.net.ssl; 129 exports javax.security.auth; 130 exports javax.security.auth.callback; 131 exports javax.security.auth.login; 132 exports javax.security.auth.spi; 133 exports javax.security.auth.x500; 134 exports javax.security.cert; 135 136 137 // additional qualified exports may be inserted at build time 138 // see make/gensrc/GenModuleInfo.gmk 139 140 exports com.sun.security.ntlm to 141 java.security.sasl; 142 exports jdk.internal to 143 jdk.jfr; 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.scripting.nashorn, 201 jdk.scripting.nashorn.shell, 202 jdk.unsupported, 203 jdk.internal.vm.ci; 204 exports jdk.internal.module to 205 java.instrument, 206 java.management.rmi, 207 jdk.jartool, 208 jdk.jfr, 209 jdk.jlink; 210 exports jdk.internal.perf to 211 java.management, 212 jdk.management.agent, 213 jdk.internal.jvmstat; 214 exports jdk.internal.ref to 215 java.desktop; 216 exports jdk.internal.reflect to 217 java.logging, 218 java.sql, 219 java.sql.rowset, 220 jdk.dynalink, 221 jdk.scripting.nashorn, 222 jdk.unsupported; 223 exports jdk.internal.vm to 224 jdk.internal.jvmstat, 225 jdk.management.agent; 226 exports jdk.internal.vm.annotation to 227 jdk.internal.vm.ci, 228 jdk.unsupported; 229 exports jdk.internal.util.jar to 230 jdk.jartool; 231 exports jdk.internal.util.xml to 232 jdk.jfr; 233 exports jdk.internal.util.xml.impl to 234 jdk.jfr; 235 exports sun.net to 236 java.net.http, 237 jdk.naming.dns; 238 exports sun.net.ext to 239 jdk.net; 240 exports sun.net.dns to 241 java.security.jgss, 242 jdk.naming.dns; 243 exports sun.net.util to 244 java.desktop, 245 jdk.jconsole, 246 java.net.http; 247 exports sun.net.www to 248 java.net.http, 249 jdk.jartool; 250 exports sun.net.www.protocol.http to 251 java.security.jgss; 252 exports sun.nio.ch to 253 java.management, 254 jdk.crypto.cryptoki, 255 jdk.net, 256 jdk.sctp; 257 exports sun.nio.cs to 258 jdk.charsets; 259 exports sun.reflect.annotation to 260 jdk.compiler; 261 exports sun.reflect.generics.reflectiveObjects to 262 java.desktop; 263 exports sun.reflect.misc to 264 java.desktop, 265 java.datatransfer, 266 java.management, 267 java.management.rmi, 268 java.rmi, 269 java.sql.rowset; 270 exports sun.security.action to 271 java.desktop, 272 java.security.jgss; 273 exports sun.security.internal.interfaces to 274 jdk.crypto.cryptoki; 275 exports sun.security.internal.spec to 276 jdk.crypto.cryptoki; 277 exports sun.security.jca to 278 java.smartcardio, 279 jdk.crypto.ec, 280 jdk.crypto.cryptoki, 281 jdk.naming.dns; 282 exports sun.security.pkcs to 283 jdk.crypto.ec, 284 jdk.jartool; 285 exports sun.security.provider to 286 java.rmi, 287 java.security.jgss, 288 jdk.crypto.cryptoki, 289 jdk.security.auth; 290 exports sun.security.provider.certpath to 291 java.naming; 292 exports sun.security.rsa to 293 jdk.crypto.cryptoki; 294 exports sun.security.timestamp to 295 jdk.jartool; 296 exports sun.security.tools to 297 jdk.jartool; 298 exports sun.security.util to 299 java.desktop, 300 java.naming, 301 java.rmi, 302 java.security.jgss, 303 java.security.sasl, 304 java.smartcardio, 305 java.xml.crypto, 306 jdk.crypto.ec, 307 jdk.crypto.cryptoki, 308 jdk.jartool, 309 jdk.security.auth, 310 jdk.security.jgss; 311 exports sun.security.util.math to 312 jdk.crypto.ec; 313 exports sun.security.util.math.intpoly to 314 jdk.crypto.ec; 315 exports sun.security.x509 to 316 jdk.crypto.ec, 317 jdk.crypto.cryptoki, 318 jdk.jartool; 319 exports sun.security.validator to 320 jdk.jartool; 321 exports sun.util.cldr to 322 jdk.jlink; 323 exports sun.util.locale.provider to 324 java.desktop, 325 jdk.jlink, 326 jdk.localedata; 327 exports sun.util.logging to 328 java.desktop, 329 java.logging, 330 java.prefs; 331 exports sun.util.resources to 332 jdk.localedata; 333 334 335 // the service types defined by the APIs in this module 336 337 uses java.lang.System.LoggerFinder; 338 uses java.net.ContentHandlerFactory; 339 uses java.net.spi.URLStreamHandlerProvider; 340 uses java.nio.channels.spi.AsynchronousChannelProvider; 341 uses java.nio.channels.spi.SelectorProvider; 342 uses java.nio.charset.spi.CharsetProvider; 343 uses java.nio.file.spi.FileSystemProvider; 344 uses java.nio.file.spi.FileTypeDetector; 345 uses java.security.Provider; 346 uses java.text.spi.BreakIteratorProvider; 347 uses java.text.spi.CollatorProvider; 348 uses java.text.spi.DateFormatProvider; 349 uses java.text.spi.DateFormatSymbolsProvider; 350 uses java.text.spi.DecimalFormatSymbolsProvider; 351 uses java.text.spi.NumberFormatProvider; 352 uses java.time.chrono.AbstractChronology; 353 uses java.time.chrono.Chronology; 354 uses java.time.zone.ZoneRulesProvider; 355 uses java.util.spi.CalendarDataProvider; 356 uses java.util.spi.CalendarNameProvider; 357 uses java.util.spi.CurrencyNameProvider; 358 uses java.util.spi.LocaleNameProvider; 359 uses java.util.spi.ResourceBundleControlProvider; 360 uses java.util.spi.ResourceBundleProvider; 361 uses java.util.spi.TimeZoneNameProvider; 362 uses java.util.spi.ToolProvider; 363 uses javax.security.auth.spi.LoginModule; 364 365 // JDK-internal service types 366 367 uses jdk.internal.logger.DefaultLoggerFinder; 368 uses sun.text.spi.JavaTimeDateTimePatternProvider; 369 uses sun.util.spi.CalendarProvider; 370 uses sun.util.locale.provider.LocaleDataMetaInfo; 371 uses sun.util.resources.LocaleData.CommonResourceBundleProvider; 372 uses sun.util.resources.LocaleData.SupplementaryResourceBundleProvider; 373 374 // Built-in service providers that are located via ServiceLoader 375 376 provides java.nio.file.spi.FileSystemProvider with 377 jdk.internal.jrtfs.JrtFileSystemProvider; 378 }