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.desktop.jmod - Desktop Module
JDK 17 java.desktop.jmod is the JMOD file for JDK 17 Desktop module.
JDK 17 Desktop module compiled class files are stored in \fyicenter\jdk-17.0.5\jmods\java.desktop.jmod.
JDK 17 Desktop module compiled class files are also linked and stored in the \fyicenter\jdk-17.0.5\lib\modules JImage file.
JDK 17 Desktop module source code files are stored in \fyicenter\jdk-17.0.5\lib\src.zip\java.desktop.
You can click and view the content of each source code file in the list below.
✍: FYIcenter
⏎ com/sun/beans/finder/InstanceFinder.java
/* * Copyright (c) 2009, 2014, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * * */ package com.sun.beans.finder; /** * This is utility class that provides basic functionality * to find an auxiliary class for a JavaBean specified by its type. * * @since 1.7 * * @author Sergey A. Malenkov */ class InstanceFinder<T> { private static final String[] EMPTY = { }; private final Class<? extends T> type; private final boolean allow; private final String suffix; private volatile String[] packages; InstanceFinder(Class<? extends T> type, boolean allow, String suffix, String... packages) { this.type = type; this.allow = allow; this.suffix = suffix; this.packages = packages.clone(); } public String[] getPackages() { return this.packages.clone(); } public void setPackages(String... packages) { this.packages = (packages != null) && (packages.length > 0) ? packages.clone() : EMPTY; } public T find(Class<?> type) { if (type == null) { return null; } String name = type.getName() + this.suffix; T object = instantiate(type, name); if (object != null) { return object; } if (this.allow) { object = instantiate(type, null); if (object != null) { return object; } } int index = name.lastIndexOf('.') + 1; if (index > 0) { name = name.substring(index); } for (String prefix : this.packages) { object = instantiate(type, prefix, name); if (object != null) { return object; } } return null; } @SuppressWarnings("deprecation") protected T instantiate(Class<?> type, String name) { if (type != null) { try { if (name != null) { type = ClassFinder.findClass(name, type.getClassLoader()); } if (this.type.isAssignableFrom(type)) { @SuppressWarnings("unchecked") T tmp = (T) type.newInstance(); return tmp; } } catch (Exception exception) { // ignore any exceptions } } return null; } protected T instantiate(Class<?> type, String prefix, String name) { return instantiate(type, prefix + '.' + name); } }
⏎ com/sun/beans/finder/InstanceFinder.java
Or download all of them as a single archive file:
File name: java.desktop-17.0.5-src.zip File size: 9152233 bytes Release date: 2022-09-13 Download
⇒ JDK 17 java.instrument.jmod - Instrument Module
2023-09-16, 59984👍, 0💬
Popular Posts:
Snappy-Java is a Java port of the "snappy", a fast C++ compresser/decompresser developed by Google. ...
Java Advanced Imaging (JAI) is a Java platform extension API that provides a set of object-oriented ...
What Is activation.jar? I heard it's related to JAF (JavaBeans Activation Framework) 1.1? The if you...
Where to find answers to frequently asked questions on Downloading and Installing Connector/J - JDBC...
JDK 11 jdk.jdi.jmod is the JMOD file for JDK 11 JDI (Java Debug Interface) tool. JDK 11 JDI tool com...