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 java.management.jmod - Management Module
JDK 11 java.management.jmod is the JMOD file for JDK 11 Management module.
JDK 11 Management module compiled class files are stored in \fyicenter\jdk-11.0.1\jmods\java.management.jmod.
JDK 11 Management module compiled class files are also linked and stored in the \fyicenter\jdk-11.0.1\lib\modules JImage file.
JDK 11 Management module source code files are stored in \fyicenter\jdk-11.0.1\lib\src.zip\java.management.
You can click and view the content of each source code file in the list below.
✍: FYIcenter
⏎ com/sun/jmx/mbeanserver/StandardMBeanIntrospector.java
/* * Copyright (c) 2005, 2013, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * * */ package com.sun.jmx.mbeanserver; import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method; import java.lang.reflect.Type; import java.util.WeakHashMap; import javax.management.Descriptor; import javax.management.ImmutableDescriptor; import javax.management.IntrospectionException; import javax.management.MBeanAttributeInfo; import javax.management.MBeanException; import javax.management.MBeanOperationInfo; import javax.management.NotCompliantMBeanException; import javax.management.NotificationBroadcaster; import javax.management.NotificationBroadcasterSupport; import sun.reflect.misc.MethodUtil; /** * @since 1.6 */ class StandardMBeanIntrospector extends MBeanIntrospector<Method> { private static final StandardMBeanIntrospector instance = new StandardMBeanIntrospector(); static StandardMBeanIntrospector getInstance() { return instance; } @Override PerInterfaceMap<Method> getPerInterfaceMap() { return perInterfaceMap; } @Override MBeanInfoMap getMBeanInfoMap() { return mbeanInfoMap; } @Override MBeanAnalyzer<Method> getAnalyzer(Class<?> mbeanInterface) throws NotCompliantMBeanException { return MBeanAnalyzer.analyzer(mbeanInterface, this); } @Override boolean isMXBean() { return false; } @Override Method mFrom(Method m) { return m; } @Override String getName(Method m) { return m.getName(); } @Override Type getGenericReturnType(Method m) { return m.getGenericReturnType(); } @Override Type[] getGenericParameterTypes(Method m) { return m.getGenericParameterTypes(); } @Override String[] getSignature(Method m) { Class<?>[] params = m.getParameterTypes(); String[] sig = new String[params.length]; for (int i = 0; i < params.length; i++) sig[i] = params[i].getName(); return sig; } @Override void checkMethod(Method m) { } @Override Object invokeM2(Method m, Object target, Object[] args, Object cookie) throws InvocationTargetException, IllegalAccessException, MBeanException { return MethodUtil.invoke(m, target, args); } @Override boolean validParameter(Method m, Object value, int paramNo, Object cookie) { return isValidParameter(m, value, paramNo); } @Override MBeanAttributeInfo getMBeanAttributeInfo(String attributeName, Method getter, Method setter) { final String description = "Attribute exposed for management"; try { return new MBeanAttributeInfo(attributeName, description, getter, setter); } catch (IntrospectionException e) { throw new RuntimeException(e); // should not happen } } @Override MBeanOperationInfo getMBeanOperationInfo(String operationName, Method operation) { final String description = "Operation exposed for management"; return new MBeanOperationInfo(description, operation); } @Override Descriptor getBasicMBeanDescriptor() { /* We don't bother saying mxbean=false, and we can't know whether the info is immutable until we know whether the MBean class (not interface) is a NotificationBroadcaster. */ return ImmutableDescriptor.EMPTY_DESCRIPTOR; } @Override Descriptor getMBeanDescriptor(Class<?> resourceClass) { boolean immutable = isDefinitelyImmutableInfo(resourceClass); return new ImmutableDescriptor("mxbean=false", "immutableInfo=" + immutable); } /* Return true if and only if we can be sure that the given MBean implementation * class has immutable MBeanInfo. A Standard MBean that is a * NotificationBroadcaster is allowed to return different values at * different times from its getNotificationInfo() method, which is when * we might not know if it is immutable. But if it is a subclass of * NotificationBroadcasterSupport and does not override * getNotificationInfo(), then we know it won't change. */ static boolean isDefinitelyImmutableInfo(Class<?> implClass) { if (!NotificationBroadcaster.class.isAssignableFrom(implClass)) return true; synchronized (definitelyImmutable) { Boolean immutable = definitelyImmutable.get(implClass); if (immutable == null) { final Class<NotificationBroadcasterSupport> nbs = NotificationBroadcasterSupport.class; if (nbs.isAssignableFrom(implClass)) { try { Method m = implClass.getMethod("getNotificationInfo"); immutable = (m.getDeclaringClass() == nbs); } catch (Exception e) { // Too bad, we'll say no for now. return false; } } else immutable = false; definitelyImmutable.put(implClass, immutable); } return immutable; } } private static final WeakHashMap<Class<?>, Boolean> definitelyImmutable = new WeakHashMap<Class<?>, Boolean>(); private static final PerInterfaceMap<Method> perInterfaceMap = new PerInterfaceMap<Method>(); private static final MBeanInfoMap mbeanInfoMap = new MBeanInfoMap(); }
⏎ com/sun/jmx/mbeanserver/StandardMBeanIntrospector.java
Or download all of them as a single archive file:
File name: java.management-11.0.1-src.zip File size: 828174 bytes Release date: 2018-11-04 Download
⇒ JDK 11 java.management.rmi.jmod - Management RMI Module
2020-04-30, 97621👍, 0💬
Popular Posts:
Apache Log4j SLF4J Binding allows applications coded to the SLF4J API to use Log4j 2 as the implemen...
iText is an ideal library for developers looking to enhance web- and other applications with dynamic...
JDK 11 java.base.jmod is the JMOD file for JDK 11 Base module. JDK 11 Base module compiled class fil...
What Is commons-logging-1.2.jar? commons-logging-1.2.jar is the JAR file for Apache Commons Logging ...
Snappy-Java is a Java port of the "snappy", a fast C++ compresser/decompresser developed by Google. ...