public class com.sun.jmx.mbeanserver.MXBeanLookup
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: com.sun.jmx.mbeanserver.MXBeanLookup
super_class: java.lang.Object
{
private static final java.lang.ThreadLocal<com.sun.jmx.mbeanserver.MXBeanLookup> currentLookup;
descriptor: Ljava/lang/ThreadLocal;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
Signature: Ljava/lang/ThreadLocal<Lcom/sun/jmx/mbeanserver/MXBeanLookup;>;
private final javax.management.MBeanServerConnection mbsc;
descriptor: Ljavax/management/MBeanServerConnection;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final com.sun.jmx.mbeanserver.WeakIdentityHashMap<java.lang.Object, javax.management.ObjectName> mxbeanToObjectName;
descriptor: Lcom/sun/jmx/mbeanserver/WeakIdentityHashMap;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Lcom/sun/jmx/mbeanserver/WeakIdentityHashMap<Ljava/lang/Object;Ljavax/management/ObjectName;>;
private final java.util.Map<javax.management.ObjectName, java.lang.ref.WeakReference<java.lang.Object>> objectNameToProxy;
descriptor: Ljava/util/Map;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/Map<Ljavax/management/ObjectName;Ljava/lang/ref/WeakReference<Ljava/lang/Object;>;>;
private static final com.sun.jmx.mbeanserver.WeakIdentityHashMap<javax.management.MBeanServerConnection, java.lang.ref.WeakReference<com.sun.jmx.mbeanserver.MXBeanLookup>> mbscToLookup;
descriptor: Lcom/sun/jmx/mbeanserver/WeakIdentityHashMap;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
Signature: Lcom/sun/jmx/mbeanserver/WeakIdentityHashMap<Ljavax/management/MBeanServerConnection;Ljava/lang/ref/WeakReference<Lcom/sun/jmx/mbeanserver/MXBeanLookup;>;>;
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: new java.lang.ThreadLocal
dup
invokespecial java.lang.ThreadLocal.<init>:()V
1: putstatic com.sun.jmx.mbeanserver.MXBeanLookup.currentLookup:Ljava/lang/ThreadLocal;
2: invokestatic com.sun.jmx.mbeanserver.WeakIdentityHashMap.make:()Lcom/sun/jmx/mbeanserver/WeakIdentityHashMap;
putstatic com.sun.jmx.mbeanserver.MXBeanLookup.mbscToLookup:Lcom/sun/jmx/mbeanserver/WeakIdentityHashMap;
return
LocalVariableTable:
Start End Slot Name Signature
private void <init>(javax.management.MBeanServerConnection);
descriptor: (Ljavax/management/MBeanServerConnection;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
invokestatic com.sun.jmx.mbeanserver.WeakIdentityHashMap.make:()Lcom/sun/jmx/mbeanserver/WeakIdentityHashMap;
putfield com.sun.jmx.mbeanserver.MXBeanLookup.mxbeanToObjectName:Lcom/sun/jmx/mbeanserver/WeakIdentityHashMap;
2: aload 0
invokestatic com.sun.jmx.mbeanserver.Util.newMap:()Ljava/util/Map;
putfield com.sun.jmx.mbeanserver.MXBeanLookup.objectNameToProxy:Ljava/util/Map;
3: aload 0
aload 1
putfield com.sun.jmx.mbeanserver.MXBeanLookup.mbsc:Ljavax/management/MBeanServerConnection;
4: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lcom/sun/jmx/mbeanserver/MXBeanLookup;
0 5 1 mbsc Ljavax/management/MBeanServerConnection;
MethodParameters:
Name Flags
mbsc
static com.sun.jmx.mbeanserver.MXBeanLookup lookupFor(javax.management.MBeanServerConnection);
descriptor: (Ljavax/management/MBeanServerConnection;)Lcom/sun/jmx/mbeanserver/MXBeanLookup;
flags: (0x0008) ACC_STATIC
Code:
stack=5, locals=4, args_size=1
start local 0 0: getstatic com.sun.jmx.mbeanserver.MXBeanLookup.mbscToLookup:Lcom/sun/jmx/mbeanserver/WeakIdentityHashMap;
dup
astore 1
monitorenter
1: getstatic com.sun.jmx.mbeanserver.MXBeanLookup.mbscToLookup:Lcom/sun/jmx/mbeanserver/WeakIdentityHashMap;
aload 0
invokevirtual com.sun.jmx.mbeanserver.WeakIdentityHashMap.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.ref.WeakReference
astore 2
start local 2 2: aload 2
ifnonnull 3
aconst_null
goto 4
StackMap locals: com.sun.jmx.mbeanserver.WeakIdentityHashMap java.lang.ref.WeakReference
StackMap stack:
3: aload 2
invokevirtual java.lang.ref.WeakReference.get:()Ljava/lang/Object;
checkcast com.sun.jmx.mbeanserver.MXBeanLookup
StackMap locals:
StackMap stack: com.sun.jmx.mbeanserver.MXBeanLookup
4: astore 3
start local 3 5: aload 3
ifnonnull 8
6: new com.sun.jmx.mbeanserver.MXBeanLookup
dup
aload 0
invokespecial com.sun.jmx.mbeanserver.MXBeanLookup.<init>:(Ljavax/management/MBeanServerConnection;)V
astore 3
7: getstatic com.sun.jmx.mbeanserver.MXBeanLookup.mbscToLookup:Lcom/sun/jmx/mbeanserver/WeakIdentityHashMap;
aload 0
new java.lang.ref.WeakReference
dup
aload 3
invokespecial java.lang.ref.WeakReference.<init>:(Ljava/lang/Object;)V
invokevirtual com.sun.jmx.mbeanserver.WeakIdentityHashMap.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
8: StackMap locals: com.sun.jmx.mbeanserver.MXBeanLookup
StackMap stack:
aload 3
aload 1
monitorexit
9: areturn
end local 3 end local 2 10: StackMap locals: javax.management.MBeanServerConnection com.sun.jmx.mbeanserver.WeakIdentityHashMap
StackMap stack: java.lang.Throwable
aload 1
monitorexit
11: athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 mbsc Ljavax/management/MBeanServerConnection;
2 10 2 weakLookup Ljava/lang/ref/WeakReference<Lcom/sun/jmx/mbeanserver/MXBeanLookup;>;
5 10 3 lookup Lcom/sun/jmx/mbeanserver/MXBeanLookup;
Exception table:
from to target type
1 9 10 any
10 11 10 any
MethodParameters:
Name Flags
mbsc
synchronized <T> T objectNameToMXBean(javax.management.ObjectName, java.lang.Class<T>);
descriptor: (Ljavax/management/ObjectName;Ljava/lang/Class;)Ljava/lang/Object;
flags: (0x0020) ACC_SYNCHRONIZED
Code:
stack=5, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield com.sun.jmx.mbeanserver.MXBeanLookup.objectNameToProxy:Ljava/util/Map;
aload 1
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.ref.WeakReference
astore 3
start local 3 1: aload 3
ifnull 5
2: aload 3
invokevirtual java.lang.ref.WeakReference.get:()Ljava/lang/Object;
astore 4
start local 4 3: aload 2
aload 4
invokevirtual java.lang.Class.isInstance:(Ljava/lang/Object;)Z
ifeq 5
4: aload 2
aload 4
invokevirtual java.lang.Class.cast:(Ljava/lang/Object;)Ljava/lang/Object;
areturn
end local 4 5: StackMap locals: java.lang.ref.WeakReference
StackMap stack:
aload 0
getfield com.sun.jmx.mbeanserver.MXBeanLookup.mbsc:Ljavax/management/MBeanServerConnection;
aload 1
aload 2
invokestatic javax.management.JMX.newMXBeanProxy:(Ljavax/management/MBeanServerConnection;Ljavax/management/ObjectName;Ljava/lang/Class;)Ljava/lang/Object;
astore 4
start local 4 6: aload 0
getfield com.sun.jmx.mbeanserver.MXBeanLookup.objectNameToProxy:Ljava/util/Map;
aload 1
new java.lang.ref.WeakReference
dup
aload 4
invokespecial java.lang.ref.WeakReference.<init>:(Ljava/lang/Object;)V
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
7: aload 4
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lcom/sun/jmx/mbeanserver/MXBeanLookup;
0 8 1 name Ljavax/management/ObjectName;
0 8 2 type Ljava/lang/Class<TT;>;
1 8 3 wr Ljava/lang/ref/WeakReference<Ljava/lang/Object;>;
3 5 4 proxy Ljava/lang/Object;
6 8 4 proxy TT;
Signature: <T:Ljava/lang/Object;>(Ljavax/management/ObjectName;Ljava/lang/Class<TT;>;)TT;
MethodParameters:
Name Flags
name
type
synchronized javax.management.ObjectName mxbeanToObjectName(java.lang.Object);
descriptor: (Ljava/lang/Object;)Ljavax/management/ObjectName;
flags: (0x0020) ACC_SYNCHRONIZED
Code:
stack=5, locals=5, args_size=2
start local 0 start local 1 0: aload 1
instanceof java.lang.reflect.Proxy
ifeq 11
1: aload 1
invokestatic java.lang.reflect.Proxy.getInvocationHandler:(Ljava/lang/Object;)Ljava/lang/reflect/InvocationHandler;
astore 3
start local 3 2: aload 3
instanceof javax.management.MBeanServerInvocationHandler
ifeq 9
3: aload 3
checkcast javax.management.MBeanServerInvocationHandler
4: astore 4
start local 4 5: aload 4
invokevirtual javax.management.MBeanServerInvocationHandler.getMBeanServerConnection:()Ljavax/management/MBeanServerConnection;
aload 0
getfield com.sun.jmx.mbeanserver.MXBeanLookup.mbsc:Ljavax/management/MBeanServerConnection;
invokevirtual java.lang.Object.equals:(Ljava/lang/Object;)Z
ifeq 7
6: aload 4
invokevirtual javax.management.MBeanServerInvocationHandler.getObjectName:()Ljavax/management/ObjectName;
areturn
7: StackMap locals: com.sun.jmx.mbeanserver.MXBeanLookup java.lang.Object top java.lang.reflect.InvocationHandler javax.management.MBeanServerInvocationHandler
StackMap stack:
ldc "proxy for a different MBeanServer"
astore 2
end local 4 start local 2 8: goto 15
end local 2 9: StackMap locals:
StackMap stack:
ldc "not a JMX proxy"
astore 2
end local 3 start local 2 10: goto 15
end local 2 11: StackMap locals: com.sun.jmx.mbeanserver.MXBeanLookup java.lang.Object
StackMap stack:
aload 0
getfield com.sun.jmx.mbeanserver.MXBeanLookup.mxbeanToObjectName:Lcom/sun/jmx/mbeanserver/WeakIdentityHashMap;
aload 1
invokevirtual com.sun.jmx.mbeanserver.WeakIdentityHashMap.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast javax.management.ObjectName
astore 3
start local 3 12: aload 3
ifnull 14
13: aload 3
areturn
14: StackMap locals: com.sun.jmx.mbeanserver.MXBeanLookup java.lang.Object top javax.management.ObjectName
StackMap stack:
ldc "not an MXBean registered in this MBeanServer"
astore 2
end local 3 start local 2 15: StackMap locals: com.sun.jmx.mbeanserver.MXBeanLookup java.lang.Object java.lang.String
StackMap stack:
aload 1
ifnonnull 17
16: ldc "null"
goto 18
StackMap locals:
StackMap stack:
17: new java.lang.StringBuilder
dup
ldc "object of type "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
18: StackMap locals:
StackMap stack: java.lang.String
astore 3
start local 3 19: new javax.management.openmbean.OpenDataException
dup
20: new java.lang.StringBuilder
dup
ldc "Could not convert "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 3
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc " to an ObjectName: "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
21: invokespecial javax.management.openmbean.OpenDataException.<init>:(Ljava/lang/String;)V
athrow
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 22 0 this Lcom/sun/jmx/mbeanserver/MXBeanLookup;
0 22 1 mxbean Ljava/lang/Object;
8 9 2 wrong Ljava/lang/String;
10 11 2 wrong Ljava/lang/String;
15 22 2 wrong Ljava/lang/String;
2 10 3 ih Ljava/lang/reflect/InvocationHandler;
5 8 4 mbsih Ljavax/management/MBeanServerInvocationHandler;
12 15 3 name Ljavax/management/ObjectName;
19 22 3 s Ljava/lang/String;
Exceptions:
throws javax.management.openmbean.OpenDataException
MethodParameters:
Name Flags
mxbean
synchronized void addReference(javax.management.ObjectName, java.lang.Object);
descriptor: (Ljavax/management/ObjectName;Ljava/lang/Object;)V
flags: (0x0020) ACC_SYNCHRONIZED
Code:
stack=5, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield com.sun.jmx.mbeanserver.MXBeanLookup.mxbeanToObjectName:Lcom/sun/jmx/mbeanserver/WeakIdentityHashMap;
aload 2
invokevirtual com.sun.jmx.mbeanserver.WeakIdentityHashMap.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast javax.management.ObjectName
astore 3
start local 3 1: aload 3
ifnull 8
2: new com.sun.jmx.mbeanserver.GetPropertyAction
dup
ldc "jmx.mxbean.multiname"
invokespecial com.sun.jmx.mbeanserver.GetPropertyAction.<init>:(Ljava/lang/String;)V
3: invokestatic java.security.AccessController.doPrivileged:(Ljava/security/PrivilegedAction;)Ljava/lang/Object;
checkcast java.lang.String
astore 4
start local 4 4: ldc "true"
aload 4
invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
ifne 8
5: new javax.management.InstanceAlreadyExistsException
dup
6: new java.lang.StringBuilder
dup
ldc "MXBean already registered with name "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 3
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
7: invokespecial javax.management.InstanceAlreadyExistsException.<init>:(Ljava/lang/String;)V
athrow
end local 4 8: StackMap locals: javax.management.ObjectName
StackMap stack:
aload 0
getfield com.sun.jmx.mbeanserver.MXBeanLookup.mxbeanToObjectName:Lcom/sun/jmx/mbeanserver/WeakIdentityHashMap;
aload 2
aload 1
invokevirtual com.sun.jmx.mbeanserver.WeakIdentityHashMap.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
9: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lcom/sun/jmx/mbeanserver/MXBeanLookup;
0 10 1 name Ljavax/management/ObjectName;
0 10 2 mxbean Ljava/lang/Object;
1 10 3 existing Ljavax/management/ObjectName;
4 8 4 multiname Ljava/lang/String;
Exceptions:
throws javax.management.InstanceAlreadyExistsException
MethodParameters:
Name Flags
name
mxbean
synchronized boolean removeReference(javax.management.ObjectName, java.lang.Object);
descriptor: (Ljavax/management/ObjectName;Ljava/lang/Object;)Z
flags: (0x0020) ACC_SYNCHRONIZED
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 1
aload 0
getfield com.sun.jmx.mbeanserver.MXBeanLookup.mxbeanToObjectName:Lcom/sun/jmx/mbeanserver/WeakIdentityHashMap;
aload 2
invokevirtual com.sun.jmx.mbeanserver.WeakIdentityHashMap.get:(Ljava/lang/Object;)Ljava/lang/Object;
invokevirtual javax.management.ObjectName.equals:(Ljava/lang/Object;)Z
ifeq 3
1: aload 0
getfield com.sun.jmx.mbeanserver.MXBeanLookup.mxbeanToObjectName:Lcom/sun/jmx/mbeanserver/WeakIdentityHashMap;
aload 2
invokevirtual com.sun.jmx.mbeanserver.WeakIdentityHashMap.remove:(Ljava/lang/Object;)Ljava/lang/Object;
pop
2: iconst_1
ireturn
3: StackMap locals:
StackMap stack:
iconst_0
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lcom/sun/jmx/mbeanserver/MXBeanLookup;
0 4 1 name Ljavax/management/ObjectName;
0 4 2 mxbean Ljava/lang/Object;
MethodParameters:
Name Flags
name
mxbean
static com.sun.jmx.mbeanserver.MXBeanLookup getLookup();
descriptor: ()Lcom/sun/jmx/mbeanserver/MXBeanLookup;
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: getstatic com.sun.jmx.mbeanserver.MXBeanLookup.currentLookup:Ljava/lang/ThreadLocal;
invokevirtual java.lang.ThreadLocal.get:()Ljava/lang/Object;
checkcast com.sun.jmx.mbeanserver.MXBeanLookup
areturn
LocalVariableTable:
Start End Slot Name Signature
static void setLookup(com.sun.jmx.mbeanserver.MXBeanLookup);
descriptor: (Lcom/sun/jmx/mbeanserver/MXBeanLookup;)V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: getstatic com.sun.jmx.mbeanserver.MXBeanLookup.currentLookup:Ljava/lang/ThreadLocal;
aload 0
invokevirtual java.lang.ThreadLocal.set:(Ljava/lang/Object;)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 lookup Lcom/sun/jmx/mbeanserver/MXBeanLookup;
MethodParameters:
Name Flags
lookup
}
SourceFile: "MXBeanLookup.java"