Categories:
Audio (13)
Biotech (29)
Bytecode (36)
Database (77)
Framework (7)
Game (7)
General (507)
Graphics (53)
I/O (35)
IDE (2)
JAR Tools (102)
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 (322)
Collections:
Other Resources:
JDK 17 java.management.jmod - Management Module
JDK 17 java.management.jmod is the JMOD file for JDK 17 Management module.
JDK 17 Management module compiled class files are stored in \fyicenter\jdk-17.0.5\jmods\java.management.jmod.
JDK 17 Management module compiled class files are also linked and stored in the \fyicenter\jdk-17.0.5\lib\modules JImage file.
JDK 17 Management module source code files are stored in \fyicenter\jdk-17.0.5\lib\src.zip\java.management.
You can click and view the content of each source code file in the list below.
✍: FYIcenter
⏎ javax/management/QualifiedAttributeValueExp.java
/*
* Copyright (c) 1999, 2008, Oracle and/or its affiliates. All rights reserved.
* ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*/
package javax.management;
/**
* <p>Represents attributes used as arguments to relational constraints,
* where the attribute must be in an MBean of a specified {@linkplain
* MBeanInfo#getClassName() class}. A QualifiedAttributeValueExp may be used
* anywhere a ValueExp is required.
*
* @serial include
*
* @since 1.5
*/
class QualifiedAttributeValueExp extends AttributeValueExp {
/* Serial version */
private static final long serialVersionUID = 8832517277410933254L;
/**
* @serial The attribute class name
*/
private String className;
/**
* Basic Constructor.
* @deprecated see {@link AttributeValueExp#AttributeValueExp()}
*/
@Deprecated
public QualifiedAttributeValueExp() {
}
/**
* Creates a new QualifiedAttributeValueExp representing the specified object
* attribute, named attr with class name className.
*/
public QualifiedAttributeValueExp(String className, String attr) {
super(attr);
this.className = className;
}
/**
* Returns a string representation of the class name of the attribute.
*/
public String getAttrClassName() {
return className;
}
/**
* Applies the QualifiedAttributeValueExp to an MBean.
*
* @param name The name of the MBean on which the QualifiedAttributeValueExp will be applied.
*
* @return The ValueExp.
*
* @exception BadStringOperationException
* @exception BadBinaryOpValueExpException
* @exception BadAttributeValueExpException
* @exception InvalidApplicationException
*/
@Override
public ValueExp apply(ObjectName name) throws BadStringOperationException, BadBinaryOpValueExpException,
BadAttributeValueExpException, InvalidApplicationException {
try {
MBeanServer server = QueryEval.getMBeanServer();
String v = server.getObjectInstance(name).getClassName();
if (v.equals(className)) {
return super.apply(name);
}
throw new InvalidApplicationException("Class name is " + v +
", should be " + className);
} catch (Exception e) {
throw new InvalidApplicationException("Qualified attribute: " + e);
/* Can happen if MBean disappears between the time we
construct the list of MBeans to query and the time we
evaluate the query on this MBean, or if
getObjectInstance throws SecurityException. */
}
}
/**
* Returns the string representing its value
*/
@Override
public String toString() {
if (className != null) {
return className + "." + super.toString();
} else {
return super.toString();
}
}
}
⏎ javax/management/QualifiedAttributeValueExp.java
Or download all of them as a single archive file:
File name: java.management-17.0.5-src.zip File size: 850134 bytes Release date: 2022-09-13 Download
⇒ JDK 17 java.management.rmi.jmod - Management RMI Module
2023-09-23, ≈70🔥, 0💬
Popular Posts:
Java Servlet API 3.0.1 Source Code Files are important if you want to compile them with different JD...
How to perform XML Schema validation with dom\Writer.java provided in the Apache Xerces package? You...
JRE 8 rt.jar is the JAR file for JRE 8 RT (Runtime) libraries. JRE (Java Runtime) 8 is the runtime e...
How to merge two JAR files with "jar" commands? I am tired of specifying multiple JAR files in the c...
JDK 11 jdk.jdi.jmod is the JMOD file for JDK 11 JDI (Java Debug Interface) tool. JDK 11 JDI tool com...