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 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 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: (0x000a) ACC_PRIVATE, ACC_STATIC
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=1, locals=0, args_size=0
0: 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=2, locals=4, args_size=2
start local 0 start local 1 0: aload 1
instanceof java.lang.reflect.Proxy
ifeq 8
1: aload 1
invokestatic java.lang.reflect.Proxy.getInvocationHandler:(Ljava/lang/Object;)Ljava/lang/reflect/InvocationHandler;
astore 2
start local 2 2: aload 2
instanceof javax.management.MBeanServerInvocationHandler
ifeq 7
3: aload 2
checkcast javax.management.MBeanServerInvocationHandler
4: astore 3
start local 3 5: aload 3
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 3
invokevirtual javax.management.MBeanServerInvocationHandler.getObjectName:()Ljavax/management/ObjectName;
areturn
end local 3 7: StackMap locals: java.lang.reflect.InvocationHandler
StackMap stack:
aconst_null
areturn
end local 2 8: StackMap locals:
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
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lcom/sun/jmx/mbeanserver/MXBeanLookup;
0 9 1 mxbean Ljava/lang/Object;
2 8 2 ih Ljava/lang/reflect/InvocationHandler;
5 7 3 mbsih Ljavax/management/MBeanServerInvocationHandler;
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=3, locals=3, 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
aload 1
invokevirtual com.sun.jmx.mbeanserver.WeakIdentityHashMap.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/sun/jmx/mbeanserver/MXBeanLookup;
0 2 1 name Ljavax/management/ObjectName;
0 2 2 mxbean Ljava/lang/Object;
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
}
SourceFile: "MXBeanLookup.java"