Categories:
Audio (13)
Biotech (29)
Bytecode (36)
Database (77)
Framework (7)
Game (7)
General (507)
Graphics (53)
I/O (35)
IDE (2)
JAR Tools (101)
JavaBeans (21)
JDBC (121)
JDK (426)
JSP (20)
Logging (108)
Mail (58)
Messaging (8)
Network (84)
PDF (97)
Report (7)
Scripting (84)
Security (32)
Server (121)
Servlet (26)
SOAP (24)
Testing (54)
Web (15)
XML (309)
Collections:
Other Resources:
JDK 17 java.base.jmod - Base Module
JDK 17 java.base.jmod is the JMOD file for JDK 17 Base module.
JDK 17 Base module compiled class files are stored in \fyicenter\jdk-17.0.5\jmods\java.base.jmod.
JDK 17 Base module compiled class files are also linked and stored in the \fyicenter\jdk-17.0.5\lib\modules JImage file.
JDK 17 Base module source code files are stored in \fyicenter\jdk-17.0.5\lib\src.zip\java.base.
You can click and view the content of each source code file in the list below.
✍: FYIcenter
⏎ jdk/internal/loader/ClassLoaderValue.java
/* * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * * */ package jdk.internal.loader; import java.util.Objects; import java.util.function.BiFunction; /** * root-ClassLoaderValue. Each instance defines a separate namespace for * associated values. * <p> * ClassLoaderValue allows associating a * {@link #computeIfAbsent(ClassLoader, BiFunction) computed} non-null value with * a {@code (ClassLoader, keys...)} tuple. The associated value, as well as the * keys are strongly reachable from the associated ClassLoader so care should be * taken to use such keys and values that only reference types resolvable from * the associated ClassLoader. Failing that, ClassLoader leaks are inevitable. * <p> * Example usage: * <pre>{@code * // create a root instance which represents a namespace and declares the type of * // associated values (Class instances in this example) * static final ClassLoaderValue<Class<?>> proxyClasses = new ClassLoaderValue<>(); * * // create a compound key composed of a Module and a list of interfaces * Module module = ...; * List<Class<?>> interfaces = ...; * ClassLoaderValue<Class<?>>.Sub<Module>.Sub<List<Class<?>>> key = * proxyClasses.sub(module).sub(interfaces); * * // use the compound key together with ClassLoader to lazily associate * // the value with tuple (loader, module, interfaces) and return it * ClassLoader loader = ...; * Class<?> proxyClass = key.computeIfAbsent(loader, (ld, ky) -> { * List<Class<?>> intfcs = ky.key(); * Module m = ky.parent().key(); * Class<?> clazz = defineProxyClass(ld, m, intfcs); * return clazz; * }); * }</pre> * <p> * {@code classLoaderValue.<operation>(classLoader, ...)} represents an operation * to {@link #get}, {@link #putIfAbsent}, {@link #computeIfAbsent} or {@link #remove} * a value associated with a (classLoader, classLoaderValue) tuple. ClassLoader * instances and root-{@link ClassLoaderValue} instances are compared using * identity equality while {@link Sub sub}-ClassLoaderValue instances define * {@link #equals(Object) equality} in terms of equality of its * {@link Sub#parent() parent} ClassLoaderValue and its * {@link #key() key} component. * * @param <V> the type of value(s) associated with the root-ClassLoaderValue and * all its {@link #sub(Object) descendants}. * @author Peter Levart * @since 9 */ public final class ClassLoaderValue<V> extends AbstractClassLoaderValue<ClassLoaderValue<V>, V> { /** * Constructs new root-ClassLoaderValue representing its own namespace. */ public ClassLoaderValue() {} /** * @return the key component of this root-ClassLoaderValue (itself). */ @Override public ClassLoaderValue<V> key() { return this; } /** * root-ClassLoaderValue can only be equal to itself and has no predecessors. */ @Override public boolean isEqualOrDescendantOf(AbstractClassLoaderValue<?, V> clv) { return equals(Objects.requireNonNull(clv)); } }
⏎ jdk/internal/loader/ClassLoaderValue.java
Or download all of them as a single archive file:
File name: java.base-17.0.5-src.zip File size: 8883851 bytes Release date: 2022-09-13 Download
2023-09-26, 69011👍, 1💬
Popular Posts:
What Is commons-logging-1.2.jar? commons-logging-1.2.jar is the JAR file for Apache Commons Logging ...
JDK 11 jdk.internal.JVM Stat.jmod is the JMOD file for JDK 11 Internal Jvmstat module. JDK 11 Intern...
Jetty provides an HTTP server, HTTP client, and javax.servlet container. These components are open s...
What Is ojdbc5.jar for Oracle 11g R1? ojdbc5.jar for Oracle 11g R1 is the JAR files of ojdbc.jar, JD...
What Is HttpComponents httpcore-4.4.6.jar? HttpComponents httpcore-4.4.6.jar is the JAR file for Apa...