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 11 jdk.jlink.jmod - JLink Tool
JDK 11 jdk.jlink.jmod is the JMOD file for JDK 11 JLink tool, which can be invoked by the "jlink" command.
JDK 11 JLink tool compiled class files are stored in \fyicenter\jdk-11.0.1\jmods\jdk.jlink.jmod.
JDK 11 JLink tool compiled class files are also linked and stored in the \fyicenter\jdk-11.0.1\lib\modules JImage file.
JDK 11 JLink tool source code files are stored in \fyicenter\jdk-11.0.1\lib\src.zip\jdk.jlink.
You can click and view the content of each source code file in the list below.
✍: FYIcenter
⏎ jdk/tools/jlink/internal/ResourcePoolConfiguration.java
/* * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * * */ package jdk.tools.jlink.internal; import java.lang.module.Configuration; import java.lang.module.ModuleDescriptor; import java.lang.module.ModuleFinder; import java.lang.module.ModuleReader; import java.lang.module.ModuleReference; import java.io.IOException; import java.io.UncheckedIOException; import java.nio.ByteBuffer; import java.util.Collection; import java.util.HashSet; import java.util.Map; import java.util.Optional; import java.util.Set; import java.util.stream.Collectors; import jdk.tools.jlink.plugin.PluginException; import jdk.tools.jlink.plugin.ResourcePool; import jdk.tools.jlink.plugin.ResourcePoolEntry; import jdk.tools.jlink.plugin.ResourcePoolModule; final class ResourcePoolConfiguration { private ResourcePoolConfiguration() {} private static ModuleDescriptor descriptorOf(ResourcePoolModule mod) { ModuleDescriptor md = mod.descriptor(); // drop hashes ModuleDescriptor.Builder builder = ModuleDescriptor.newModule(md.name()); md.requires().stream() .forEach(builder::requires); md.exports().stream() .forEach(builder::exports); md.opens().stream() .forEach(builder::opens); md.uses().stream() .forEach(builder::uses); md.provides().stream() .forEach(builder::provides); builder.packages(md.packages()); md.version().ifPresent(builder::version); md.mainClass().ifPresent(builder::mainClass); return builder.build(); } private static ModuleReference moduleReference(ModuleDescriptor desc) { return new ModuleReference(desc, null) { @Override public ModuleReader open() { throw new UnsupportedOperationException(); } }; } private static Map<String, ModuleReference> allModRefs(ResourcePool pool) { return pool.moduleView().modules(). collect(Collectors.toMap(ResourcePoolModule::name, m -> moduleReference(descriptorOf(m)))); } private static void checkPackages(ResourcePool pool) { // check that each resource pool module's packages() // returns a set that is consistent with the module // descriptor of that module. pool.moduleView().modules().forEach(m -> { ModuleDescriptor desc = m.descriptor(); if (!desc.packages().equals(m.packages())) { throw new RuntimeException("Module " + m.name() + "'s descriptor indicates the set of packages is : " + desc.packages() + ", but module contains packages: " + m.packages()); } }); } static Configuration validate(ResourcePool pool) { checkPackages(pool); final Map<String, ModuleReference> nameToModRef = allModRefs(pool); final Set<ModuleReference> allRefs = new HashSet<>(nameToModRef.values()); final ModuleFinder finder = new ModuleFinder() { @Override public Optional<ModuleReference> find(String name) { return Optional.ofNullable(nameToModRef.get(name)); } @Override public Set<ModuleReference> findAll() { return allRefs; } }; return Configuration.empty().resolve( finder, ModuleFinder.of(), nameToModRef.keySet()); } }
⏎ jdk/tools/jlink/internal/ResourcePoolConfiguration.java
Or download all of them as a single archive file:
File name: jdk.jlink-11.0.1-src.zip File size: 155677 bytes Release date: 2018-11-04 Download
⇒ JDK 11 jdk.jshell.jmod - JShell Tool
2020-06-30, 25535👍, 0💬
Popular Posts:
Xalan-Java, Version 2.7.1, is an XSLT processor for transforming XML documents into HTML, text, or o...
JSP(tm) Standard Tag Library 1.0 implementation - Jakarta Taglibs hosts the Standard Taglib 1.0, an ...
JDOM provides a solution for using XML from Java that is as simple as Java itself. There is no compe...
What is the sax\Writer.java provided in the Apache Xerces package? I have Apache Xerces 2.11.0 insta...
What Is jaxb-impl-2.1.12.jar? Java Architecture for XML Binding (JAXB) is a Java API that allows Jav...