public class org.apache.tomcat.util.modeler.Registry implements org.apache.tomcat.util.modeler.RegistryMBean, javax.management.MBeanRegistration
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.apache.tomcat.util.modeler.Registry
super_class: java.lang.Object
{
private static final org.apache.juli.logging.Log log;
descriptor: Lorg/apache/juli/logging/Log;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final org.apache.tomcat.util.res.StringManager sm;
descriptor: Lorg/apache/tomcat/util/res/StringManager;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static org.apache.tomcat.util.modeler.Registry registry;
descriptor: Lorg/apache/tomcat/util/modeler/Registry;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
private volatile javax.management.MBeanServer server;
descriptor: Ljavax/management/MBeanServer;
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
private final java.lang.Object serverLock;
descriptor: Ljava/lang/Object;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private java.util.Map<java.lang.String, org.apache.tomcat.util.modeler.ManagedBean> descriptors;
descriptor: Ljava/util/Map;
flags: (0x0002) ACC_PRIVATE
Signature: Ljava/util/Map<Ljava/lang/String;Lorg/apache/tomcat/util/modeler/ManagedBean;>;
private java.util.Map<java.lang.String, org.apache.tomcat.util.modeler.ManagedBean> descriptorsByClass;
descriptor: Ljava/util/Map;
flags: (0x0002) ACC_PRIVATE
Signature: Ljava/util/Map<Ljava/lang/String;Lorg/apache/tomcat/util/modeler/ManagedBean;>;
private java.util.Map<java.lang.String, java.net.URL> searchedPaths;
descriptor: Ljava/util/Map;
flags: (0x0002) ACC_PRIVATE
Signature: Ljava/util/Map<Ljava/lang/String;Ljava/net/URL;>;
private java.lang.Object guard;
descriptor: Ljava/lang/Object;
flags: (0x0002) ACC_PRIVATE
private final java.util.Hashtable<java.lang.String, java.util.Hashtable<java.lang.String, java.lang.Integer>> idDomains;
descriptor: Ljava/util/Hashtable;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/Hashtable<Ljava/lang/String;Ljava/util/Hashtable<Ljava/lang/String;Ljava/lang/Integer;>;>;
private final java.util.Hashtable<java.lang.String, int[]> ids;
descriptor: Ljava/util/Hashtable;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/Hashtable<Ljava/lang/String;[I>;
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc Lorg/apache/tomcat/util/modeler/Registry;
invokestatic org.apache.juli.logging.LogFactory.getLog:(Ljava/lang/Class;)Lorg/apache/juli/logging/Log;
putstatic org.apache.tomcat.util.modeler.Registry.log:Lorg/apache/juli/logging/Log;
1: ldc Lorg/apache/tomcat/util/modeler/Registry;
invokestatic org.apache.tomcat.util.res.StringManager.getManager:(Ljava/lang/Class;)Lorg/apache/tomcat/util/res/StringManager;
putstatic org.apache.tomcat.util.modeler.Registry.sm:Lorg/apache/tomcat/util/res/StringManager;
2: aconst_null
putstatic org.apache.tomcat.util.modeler.Registry.registry:Lorg/apache/tomcat/util/modeler/Registry;
return
LocalVariableTable:
Start End Slot Name Signature
protected void <init>();
descriptor: ()V
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aconst_null
putfield org.apache.tomcat.util.modeler.Registry.server:Ljavax/management/MBeanServer;
2: aload 0
new java.lang.Object
dup
invokespecial java.lang.Object.<init>:()V
putfield org.apache.tomcat.util.modeler.Registry.serverLock:Ljava/lang/Object;
3: aload 0
new java.util.HashMap
dup
invokespecial java.util.HashMap.<init>:()V
putfield org.apache.tomcat.util.modeler.Registry.descriptors:Ljava/util/Map;
4: aload 0
new java.util.HashMap
dup
invokespecial java.util.HashMap.<init>:()V
putfield org.apache.tomcat.util.modeler.Registry.descriptorsByClass:Ljava/util/Map;
5: aload 0
new java.util.HashMap
dup
invokespecial java.util.HashMap.<init>:()V
putfield org.apache.tomcat.util.modeler.Registry.searchedPaths:Ljava/util/Map;
6: aload 0
new java.util.Hashtable
dup
invokespecial java.util.Hashtable.<init>:()V
putfield org.apache.tomcat.util.modeler.Registry.idDomains:Ljava/util/Hashtable;
7: aload 0
new java.util.Hashtable
dup
invokespecial java.util.Hashtable.<init>:()V
putfield org.apache.tomcat.util.modeler.Registry.ids:Ljava/util/Hashtable;
8: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lorg/apache/tomcat/util/modeler/Registry;
public static synchronized org.apache.tomcat.util.modeler.Registry getRegistry(java.lang.Object, java.lang.Object);
descriptor: (Ljava/lang/Object;Ljava/lang/Object;)Lorg/apache/tomcat/util/modeler/Registry;
flags: (0x0029) ACC_PUBLIC, ACC_STATIC, ACC_SYNCHRONIZED
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: getstatic org.apache.tomcat.util.modeler.Registry.registry:Lorg/apache/tomcat/util/modeler/Registry;
ifnonnull 5
1: invokestatic org.apache.tomcat.util.compat.JreCompat.isGraalAvailable:()Z
ifeq 4
2: invokestatic org.apache.tomcat.util.modeler.Registry.disableRegistry:()V
3: goto 5
4: StackMap locals:
StackMap stack:
new org.apache.tomcat.util.modeler.Registry
dup
invokespecial org.apache.tomcat.util.modeler.Registry.<init>:()V
putstatic org.apache.tomcat.util.modeler.Registry.registry:Lorg/apache/tomcat/util/modeler/Registry;
5: StackMap locals:
StackMap stack:
getstatic org.apache.tomcat.util.modeler.Registry.registry:Lorg/apache/tomcat/util/modeler/Registry;
getfield org.apache.tomcat.util.modeler.Registry.guard:Ljava/lang/Object;
ifnull 7
getstatic org.apache.tomcat.util.modeler.Registry.registry:Lorg/apache/tomcat/util/modeler/Registry;
getfield org.apache.tomcat.util.modeler.Registry.guard:Ljava/lang/Object;
aload 1
if_acmpeq 7
6: aconst_null
areturn
7: StackMap locals:
StackMap stack:
getstatic org.apache.tomcat.util.modeler.Registry.registry:Lorg/apache/tomcat/util/modeler/Registry;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 key Ljava/lang/Object;
0 8 1 guard Ljava/lang/Object;
MethodParameters:
Name Flags
key
guard
public static synchronized void disableRegistry();
descriptor: ()V
flags: (0x0029) ACC_PUBLIC, ACC_STATIC, ACC_SYNCHRONIZED
Code:
stack=3, locals=0, args_size=0
0: getstatic org.apache.tomcat.util.modeler.Registry.registry:Lorg/apache/tomcat/util/modeler/Registry;
ifnonnull 3
1: new org.apache.tomcat.util.modeler.NoDescriptorRegistry
dup
invokespecial org.apache.tomcat.util.modeler.NoDescriptorRegistry.<init>:()V
putstatic org.apache.tomcat.util.modeler.Registry.registry:Lorg/apache/tomcat/util/modeler/Registry;
2: goto 4
3: StackMap locals:
StackMap stack:
getstatic org.apache.tomcat.util.modeler.Registry.log:Lorg/apache/juli/logging/Log;
getstatic org.apache.tomcat.util.modeler.Registry.sm:Lorg/apache/tomcat/util/res/StringManager;
ldc "registry.noDisable"
invokevirtual org.apache.tomcat.util.res.StringManager.getString:(Ljava/lang/String;)Ljava/lang/String;
invokeinterface org.apache.juli.logging.Log.warn:(Ljava/lang/Object;)V
4: StackMap locals:
StackMap stack:
return
LocalVariableTable:
Start End Slot Name Signature
public void stop();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
new java.util.HashMap
dup
invokespecial java.util.HashMap.<init>:()V
putfield org.apache.tomcat.util.modeler.Registry.descriptorsByClass:Ljava/util/Map;
1: aload 0
new java.util.HashMap
dup
invokespecial java.util.HashMap.<init>:()V
putfield org.apache.tomcat.util.modeler.Registry.descriptors:Ljava/util/Map;
2: aload 0
new java.util.HashMap
dup
invokespecial java.util.HashMap.<init>:()V
putfield org.apache.tomcat.util.modeler.Registry.searchedPaths:Ljava/util/Map;
3: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/apache/tomcat/util/modeler/Registry;
public void registerComponent(java.lang.Object, java.lang.String, java.lang.String);
descriptor: (Ljava/lang/Object;Ljava/lang/String;Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
aload 1
new javax.management.ObjectName
dup
aload 2
invokespecial javax.management.ObjectName.<init>:(Ljava/lang/String;)V
aload 3
invokevirtual org.apache.tomcat.util.modeler.Registry.registerComponent:(Ljava/lang/Object;Ljavax/management/ObjectName;Ljava/lang/String;)V
1: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/tomcat/util/modeler/Registry;
0 2 1 bean Ljava/lang/Object;
0 2 2 oname Ljava/lang/String;
0 2 3 type Ljava/lang/String;
Exceptions:
throws java.lang.Exception
MethodParameters:
Name Flags
bean
oname
type
public void unregisterComponent(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: aload 0
new javax.management.ObjectName
dup
aload 1
invokespecial javax.management.ObjectName.<init>:(Ljava/lang/String;)V
invokevirtual org.apache.tomcat.util.modeler.Registry.unregisterComponent:(Ljavax/management/ObjectName;)V
1: goto 4
StackMap locals:
StackMap stack: javax.management.MalformedObjectNameException
2: astore 2
start local 2 3: getstatic org.apache.tomcat.util.modeler.Registry.log:Lorg/apache/juli/logging/Log;
getstatic org.apache.tomcat.util.modeler.Registry.sm:Lorg/apache/tomcat/util/res/StringManager;
ldc "registry.objectNameCreateError"
invokevirtual org.apache.tomcat.util.res.StringManager.getString:(Ljava/lang/String;)Ljava/lang/String;
aload 2
invokeinterface org.apache.juli.logging.Log.info:(Ljava/lang/Object;Ljava/lang/Throwable;)V
end local 2 4: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/apache/tomcat/util/modeler/Registry;
0 5 1 oname Ljava/lang/String;
3 4 2 e Ljavax/management/MalformedObjectNameException;
Exception table:
from to target type
0 1 2 Class javax.management.MalformedObjectNameException
MethodParameters:
Name Flags
oname
public void invoke(java.util.List<javax.management.ObjectName>, java.lang.String, );
descriptor: (Ljava/util/List;Ljava/lang/String;Z)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=7, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 1
ifnonnull 2
1: return
2: StackMap locals:
StackMap stack:
aload 1
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 5
goto 14
StackMap locals: org.apache.tomcat.util.modeler.Registry java.util.List java.lang.String int top java.util.Iterator
StackMap stack:
3: aload 5
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast javax.management.ObjectName
astore 4
start local 4 4: aload 4
ifnonnull 6
5: goto 14
6: StackMap locals: org.apache.tomcat.util.modeler.Registry java.util.List java.lang.String int javax.management.ObjectName java.util.Iterator
StackMap stack:
aload 0
aload 4
aload 2
invokevirtual org.apache.tomcat.util.modeler.Registry.getMethodInfo:(Ljavax/management/ObjectName;Ljava/lang/String;)Ljavax/management/MBeanOperationInfo;
ifnonnull 8
7: goto 14
8: StackMap locals:
StackMap stack:
aload 0
invokevirtual org.apache.tomcat.util.modeler.Registry.getMBeanServer:()Ljavax/management/MBeanServer;
aload 4
aload 2
iconst_0
anewarray java.lang.Object
iconst_0
anewarray java.lang.String
invokeinterface javax.management.MBeanServer.invoke:(Ljavax/management/ObjectName;Ljava/lang/String;[Ljava/lang/Object;[Ljava/lang/String;)Ljava/lang/Object;
pop
9: goto 14
StackMap locals:
StackMap stack: java.lang.Exception
10: astore 6
start local 6 11: iload 3
ifeq 13
12: aload 6
athrow
13: StackMap locals: java.lang.Exception
StackMap stack:
getstatic org.apache.tomcat.util.modeler.Registry.log:Lorg/apache/juli/logging/Log;
getstatic org.apache.tomcat.util.modeler.Registry.sm:Lorg/apache/tomcat/util/res/StringManager;
ldc "registry.initError"
invokevirtual org.apache.tomcat.util.res.StringManager.getString:(Ljava/lang/String;)Ljava/lang/String;
aload 6
invokeinterface org.apache.juli.logging.Log.info:(Ljava/lang/Object;Ljava/lang/Throwable;)V
end local 6 end local 4 14: StackMap locals: org.apache.tomcat.util.modeler.Registry java.util.List java.lang.String int top java.util.Iterator
StackMap stack:
aload 5
invokeinterface java.util.Iterator.hasNext:()Z
ifne 3
15: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 this Lorg/apache/tomcat/util/modeler/Registry;
0 16 1 mbeans Ljava/util/List<Ljavax/management/ObjectName;>;
0 16 2 operation Ljava/lang/String;
0 16 3 failFirst Z
4 14 4 current Ljavax/management/ObjectName;
11 14 6 t Ljava/lang/Exception;
Exception table:
from to target type
4 5 10 Class java.lang.Exception
6 7 10 Class java.lang.Exception
8 9 10 Class java.lang.Exception
Exceptions:
throws java.lang.Exception
Signature: (Ljava/util/List<Ljavax/management/ObjectName;>;Ljava/lang/String;Z)V
MethodParameters:
Name Flags
mbeans
operation
failFirst
public synchronized int getId(java.lang.String, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/lang/String;)I
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=5, locals=7, args_size=3
start local 0 start local 1 start local 2 0: aload 1
ifnonnull 2
1: ldc ""
astore 1
2: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.tomcat.util.modeler.Registry.idDomains:Ljava/util/Hashtable;
aload 1
invokevirtual java.util.Hashtable.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.util.Hashtable
astore 3
start local 3 3: aload 3
ifnonnull 6
4: new java.util.Hashtable
dup
invokespecial java.util.Hashtable.<init>:()V
astore 3
5: aload 0
getfield org.apache.tomcat.util.modeler.Registry.idDomains:Ljava/util/Hashtable;
aload 1
aload 3
invokevirtual java.util.Hashtable.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
6: StackMap locals: java.util.Hashtable
StackMap stack:
aload 2
ifnonnull 8
7: ldc ""
astore 2
8: StackMap locals:
StackMap stack:
aload 3
aload 2
invokevirtual java.util.Hashtable.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.Integer
astore 4
start local 4 9: aload 4
ifnull 11
10: aload 4
invokevirtual java.lang.Integer.intValue:()I
ireturn
11: StackMap locals: java.lang.Integer
StackMap stack:
aload 0
getfield org.apache.tomcat.util.modeler.Registry.ids:Ljava/util/Hashtable;
aload 1
invokevirtual java.util.Hashtable.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast int[]
astore 5
start local 5 12: aload 5
ifnonnull 15
13: iconst_1
newarray 10
astore 5
14: aload 0
getfield org.apache.tomcat.util.modeler.Registry.ids:Ljava/util/Hashtable;
aload 1
aload 5
invokevirtual java.util.Hashtable.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
15: StackMap locals: int[]
StackMap stack:
aload 5
iconst_0
dup2
iaload
dup_x2
iconst_1
iadd
iastore
istore 6
start local 6 16: aload 3
aload 2
iload 6
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
invokevirtual java.util.Hashtable.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
17: iload 6
ireturn
end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 18 0 this Lorg/apache/tomcat/util/modeler/Registry;
0 18 1 domain Ljava/lang/String;
0 18 2 name Ljava/lang/String;
3 18 3 domainTable Ljava/util/Hashtable<Ljava/lang/String;Ljava/lang/Integer;>;
9 18 4 i Ljava/lang/Integer;
12 18 5 id [I
16 18 6 code I
MethodParameters:
Name Flags
domain
name
public void addManagedBean(org.apache.tomcat.util.modeler.ManagedBean);
descriptor: (Lorg/apache/tomcat/util/modeler/ManagedBean;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.apache.tomcat.util.modeler.Registry.descriptors:Ljava/util/Map;
aload 1
invokevirtual org.apache.tomcat.util.modeler.ManagedBean.getName:()Ljava/lang/String;
aload 1
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
1: aload 1
invokevirtual org.apache.tomcat.util.modeler.ManagedBean.getType:()Ljava/lang/String;
ifnull 3
2: aload 0
getfield org.apache.tomcat.util.modeler.Registry.descriptorsByClass:Ljava/util/Map;
aload 1
invokevirtual org.apache.tomcat.util.modeler.ManagedBean.getType:()Ljava/lang/String;
aload 1
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
3: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/apache/tomcat/util/modeler/Registry;
0 4 1 bean Lorg/apache/tomcat/util/modeler/ManagedBean;
MethodParameters:
Name Flags
bean
public org.apache.tomcat.util.modeler.ManagedBean findManagedBean(java.lang.String);
descriptor: (Ljava/lang/String;)Lorg/apache/tomcat/util/modeler/ManagedBean;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield org.apache.tomcat.util.modeler.Registry.descriptors:Ljava/util/Map;
aload 1
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast org.apache.tomcat.util.modeler.ManagedBean
astore 2
start local 2 1: aload 2
ifnonnull 3
2: aload 0
getfield org.apache.tomcat.util.modeler.Registry.descriptorsByClass:Ljava/util/Map;
aload 1
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast org.apache.tomcat.util.modeler.ManagedBean
astore 2
3: StackMap locals: org.apache.tomcat.util.modeler.ManagedBean
StackMap stack:
aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/apache/tomcat/util/modeler/Registry;
0 4 1 name Ljava/lang/String;
1 4 2 mb Lorg/apache/tomcat/util/modeler/ManagedBean;
MethodParameters:
Name Flags
name
public java.lang.String getType(javax.management.ObjectName, java.lang.String);
descriptor: (Ljavax/management/ObjectName;Ljava/lang/String;)Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=7, args_size=3
start local 0 start local 1 start local 2 0: aconst_null
astore 3
start local 3 1: aconst_null
astore 4
start local 4 2: aload 0
invokevirtual org.apache.tomcat.util.modeler.Registry.getMBeanServer:()Ljavax/management/MBeanServer;
aload 1
invokeinterface javax.management.MBeanServer.getMBeanInfo:(Ljavax/management/ObjectName;)Ljavax/management/MBeanInfo;
astore 4
3: goto 7
StackMap locals: org.apache.tomcat.util.modeler.Registry javax.management.ObjectName java.lang.String java.lang.String javax.management.MBeanInfo
StackMap stack: java.lang.Exception
4: pop
5: getstatic org.apache.tomcat.util.modeler.Registry.log:Lorg/apache/juli/logging/Log;
getstatic org.apache.tomcat.util.modeler.Registry.sm:Lorg/apache/tomcat/util/res/StringManager;
ldc "registry.noMetadata"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 1
aastore
invokevirtual org.apache.tomcat.util.res.StringManager.getString:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokeinterface org.apache.juli.logging.Log.info:(Ljava/lang/Object;)V
6: aconst_null
areturn
7: StackMap locals:
StackMap stack:
aload 4
invokevirtual javax.management.MBeanInfo.getAttributes:()[Ljavax/management/MBeanAttributeInfo;
astore 5
start local 5 8: iconst_0
istore 6
start local 6 9: goto 14
10: StackMap locals: javax.management.MBeanAttributeInfo[] int
StackMap stack:
aload 2
aload 5
iload 6
aaload
invokevirtual javax.management.MBeanAttributeInfo.getName:()Ljava/lang/String;
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 13
11: aload 5
iload 6
aaload
invokevirtual javax.management.MBeanAttributeInfo.getType:()Ljava/lang/String;
astore 3
12: aload 3
areturn
13: StackMap locals:
StackMap stack:
iinc 6 1
StackMap locals:
StackMap stack:
14: iload 6
aload 5
arraylength
if_icmplt 10
end local 6 15: aconst_null
areturn
end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 this Lorg/apache/tomcat/util/modeler/Registry;
0 16 1 oname Ljavax/management/ObjectName;
0 16 2 attName Ljava/lang/String;
1 16 3 type Ljava/lang/String;
2 16 4 info Ljavax/management/MBeanInfo;
8 16 5 attInfo [Ljavax/management/MBeanAttributeInfo;
9 15 6 i I
Exception table:
from to target type
2 3 4 Class java.lang.Exception
MethodParameters:
Name Flags
oname
attName
public javax.management.MBeanOperationInfo getMethodInfo(javax.management.ObjectName, java.lang.String);
descriptor: (Ljavax/management/ObjectName;Ljava/lang/String;)Ljavax/management/MBeanOperationInfo;
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=6, args_size=3
start local 0 start local 1 start local 2 0: aconst_null
astore 3
start local 3 1: aload 0
invokevirtual org.apache.tomcat.util.modeler.Registry.getMBeanServer:()Ljavax/management/MBeanServer;
aload 1
invokeinterface javax.management.MBeanServer.getMBeanInfo:(Ljavax/management/ObjectName;)Ljavax/management/MBeanInfo;
astore 3
2: goto 6
StackMap locals: org.apache.tomcat.util.modeler.Registry javax.management.ObjectName java.lang.String javax.management.MBeanInfo
StackMap stack: java.lang.Exception
3: pop
4: getstatic org.apache.tomcat.util.modeler.Registry.log:Lorg/apache/juli/logging/Log;
getstatic org.apache.tomcat.util.modeler.Registry.sm:Lorg/apache/tomcat/util/res/StringManager;
ldc "registry.noMetadata"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 1
aastore
invokevirtual org.apache.tomcat.util.res.StringManager.getString:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokeinterface org.apache.juli.logging.Log.info:(Ljava/lang/Object;)V
5: aconst_null
areturn
6: StackMap locals:
StackMap stack:
aload 3
invokevirtual javax.management.MBeanInfo.getOperations:()[Ljavax/management/MBeanOperationInfo;
astore 4
start local 4 7: iconst_0
istore 5
start local 5 8: goto 12
9: StackMap locals: javax.management.MBeanOperationInfo[] int
StackMap stack:
aload 2
aload 4
iload 5
aaload
invokevirtual javax.management.MBeanOperationInfo.getName:()Ljava/lang/String;
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 11
10: aload 4
iload 5
aaload
areturn
11: StackMap locals:
StackMap stack:
iinc 5 1
StackMap locals:
StackMap stack:
12: iload 5
aload 4
arraylength
if_icmplt 9
end local 5 13: aconst_null
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 this Lorg/apache/tomcat/util/modeler/Registry;
0 14 1 oname Ljavax/management/ObjectName;
0 14 2 opName Ljava/lang/String;
1 14 3 info Ljavax/management/MBeanInfo;
7 14 4 attInfo [Ljavax/management/MBeanOperationInfo;
8 13 5 i I
Exception table:
from to target type
1 2 3 Class java.lang.Exception
MethodParameters:
Name Flags
oname
opName
public void unregisterComponent(javax.management.ObjectName);
descriptor: (Ljavax/management/ObjectName;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 1
ifnull 5
aload 0
invokevirtual org.apache.tomcat.util.modeler.Registry.getMBeanServer:()Ljavax/management/MBeanServer;
aload 1
invokeinterface javax.management.MBeanServer.isRegistered:(Ljavax/management/ObjectName;)Z
ifeq 5
1: aload 0
invokevirtual org.apache.tomcat.util.modeler.Registry.getMBeanServer:()Ljavax/management/MBeanServer;
aload 1
invokeinterface javax.management.MBeanServer.unregisterMBean:(Ljavax/management/ObjectName;)V
2: goto 5
StackMap locals:
StackMap stack: java.lang.Throwable
3: astore 2
start local 2 4: getstatic org.apache.tomcat.util.modeler.Registry.log:Lorg/apache/juli/logging/Log;
getstatic org.apache.tomcat.util.modeler.Registry.sm:Lorg/apache/tomcat/util/res/StringManager;
ldc "registry.unregisterError"
invokevirtual org.apache.tomcat.util.res.StringManager.getString:(Ljava/lang/String;)Ljava/lang/String;
aload 2
invokeinterface org.apache.juli.logging.Log.error:(Ljava/lang/Object;Ljava/lang/Throwable;)V
end local 2 5: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/apache/tomcat/util/modeler/Registry;
0 6 1 oname Ljavax/management/ObjectName;
4 5 2 t Ljava/lang/Throwable;
Exception table:
from to target type
0 2 3 Class java.lang.Throwable
MethodParameters:
Name Flags
oname
public javax.management.MBeanServer getMBeanServer();
descriptor: ()Ljavax/management/MBeanServer;
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=4, args_size=1
start local 0 0: aload 0
getfield org.apache.tomcat.util.modeler.Registry.server:Ljavax/management/MBeanServer;
ifnonnull 16
1: aload 0
getfield org.apache.tomcat.util.modeler.Registry.serverLock:Ljava/lang/Object;
dup
astore 1
monitorenter
2: aload 0
getfield org.apache.tomcat.util.modeler.Registry.server:Ljavax/management/MBeanServer;
ifnonnull 12
3: invokestatic java.lang.System.currentTimeMillis:()J
lstore 2
start local 2 4: aconst_null
invokestatic javax.management.MBeanServerFactory.findMBeanServer:(Ljava/lang/String;)Ljava/util/ArrayList;
invokevirtual java.util.ArrayList.size:()I
ifle 9
5: aload 0
aconst_null
invokestatic javax.management.MBeanServerFactory.findMBeanServer:(Ljava/lang/String;)Ljava/util/ArrayList;
iconst_0
invokevirtual java.util.ArrayList.get:(I)Ljava/lang/Object;
checkcast javax.management.MBeanServer
putfield org.apache.tomcat.util.modeler.Registry.server:Ljavax/management/MBeanServer;
6: getstatic org.apache.tomcat.util.modeler.Registry.log:Lorg/apache/juli/logging/Log;
invokeinterface org.apache.juli.logging.Log.isDebugEnabled:()Z
ifeq 12
7: getstatic org.apache.tomcat.util.modeler.Registry.log:Lorg/apache/juli/logging/Log;
new java.lang.StringBuilder
dup
ldc "Using existing MBeanServer "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
invokestatic java.lang.System.currentTimeMillis:()J
lload 2
lsub
invokevirtual java.lang.StringBuilder.append:(J)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokeinterface org.apache.juli.logging.Log.debug:(Ljava/lang/Object;)V
8: goto 12
9: StackMap locals: java.lang.Object long
StackMap stack:
aload 0
invokestatic java.lang.management.ManagementFactory.getPlatformMBeanServer:()Ljavax/management/MBeanServer;
putfield org.apache.tomcat.util.modeler.Registry.server:Ljavax/management/MBeanServer;
10: getstatic org.apache.tomcat.util.modeler.Registry.log:Lorg/apache/juli/logging/Log;
invokeinterface org.apache.juli.logging.Log.isDebugEnabled:()Z
ifeq 12
11: getstatic org.apache.tomcat.util.modeler.Registry.log:Lorg/apache/juli/logging/Log;
new java.lang.StringBuilder
dup
ldc "Creating MBeanServer"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
invokestatic java.lang.System.currentTimeMillis:()J
lload 2
lsub
invokevirtual java.lang.StringBuilder.append:(J)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokeinterface org.apache.juli.logging.Log.debug:(Ljava/lang/Object;)V
end local 2 12: StackMap locals:
StackMap stack:
aload 1
monitorexit
13: goto 16
StackMap locals:
StackMap stack: java.lang.Throwable
14: aload 1
monitorexit
15: athrow
16: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.tomcat.util.modeler.Registry.server:Ljavax/management/MBeanServer;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 17 0 this Lorg/apache/tomcat/util/modeler/Registry;
4 12 2 t1 J
Exception table:
from to target type
2 13 14 any
14 15 14 any
public org.apache.tomcat.util.modeler.ManagedBean findManagedBean(, java.lang.Class<?>, java.lang.String);
descriptor: (Ljava/lang/Object;Ljava/lang/Class;Ljava/lang/String;)Lorg/apache/tomcat/util/modeler/ManagedBean;
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 1
ifnull 2
aload 2
ifnonnull 2
1: aload 1
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
astore 2
2: StackMap locals:
StackMap stack:
aload 3
ifnonnull 4
3: aload 2
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
astore 3
4: StackMap locals:
StackMap stack:
aload 0
aload 3
invokevirtual org.apache.tomcat.util.modeler.Registry.findManagedBean:(Ljava/lang/String;)Lorg/apache/tomcat/util/modeler/ManagedBean;
astore 4
start local 4 5: aload 4
ifnonnull 10
6: getstatic org.apache.tomcat.util.modeler.Registry.log:Lorg/apache/juli/logging/Log;
invokeinterface org.apache.juli.logging.Log.isDebugEnabled:()Z
ifeq 8
7: getstatic org.apache.tomcat.util.modeler.Registry.log:Lorg/apache/juli/logging/Log;
ldc "Looking for descriptor "
invokeinterface org.apache.juli.logging.Log.debug:(Ljava/lang/Object;)V
8: StackMap locals: org.apache.tomcat.util.modeler.ManagedBean
StackMap stack:
aload 0
aload 2
aload 3
invokevirtual org.apache.tomcat.util.modeler.Registry.findDescriptor:(Ljava/lang/Class;Ljava/lang/String;)V
9: aload 0
aload 3
invokevirtual org.apache.tomcat.util.modeler.Registry.findManagedBean:(Ljava/lang/String;)Lorg/apache/tomcat/util/modeler/ManagedBean;
astore 4
10: StackMap locals:
StackMap stack:
aload 4
ifnonnull 20
11: getstatic org.apache.tomcat.util.modeler.Registry.log:Lorg/apache/juli/logging/Log;
invokeinterface org.apache.juli.logging.Log.isDebugEnabled:()Z
ifeq 13
12: getstatic org.apache.tomcat.util.modeler.Registry.log:Lorg/apache/juli/logging/Log;
ldc "Introspecting "
invokeinterface org.apache.juli.logging.Log.debug:(Ljava/lang/Object;)V
13: StackMap locals:
StackMap stack:
aload 0
ldc "MbeansDescriptorsIntrospectionSource"
aload 2
aload 3
invokevirtual org.apache.tomcat.util.modeler.Registry.load:(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/String;)Ljava/util/List;
pop
14: aload 0
aload 3
invokevirtual org.apache.tomcat.util.modeler.Registry.findManagedBean:(Ljava/lang/String;)Lorg/apache/tomcat/util/modeler/ManagedBean;
astore 4
15: aload 4
ifnonnull 18
16: getstatic org.apache.tomcat.util.modeler.Registry.log:Lorg/apache/juli/logging/Log;
getstatic org.apache.tomcat.util.modeler.Registry.sm:Lorg/apache/tomcat/util/res/StringManager;
ldc "registry.noTypeMetadata"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 3
aastore
invokevirtual org.apache.tomcat.util.res.StringManager.getString:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokeinterface org.apache.juli.logging.Log.warn:(Ljava/lang/Object;)V
17: aconst_null
areturn
18: StackMap locals:
StackMap stack:
aload 4
aload 3
invokevirtual org.apache.tomcat.util.modeler.ManagedBean.setName:(Ljava/lang/String;)V
19: aload 0
aload 4
invokevirtual org.apache.tomcat.util.modeler.Registry.addManagedBean:(Lorg/apache/tomcat/util/modeler/ManagedBean;)V
20: StackMap locals:
StackMap stack:
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 21 0 this Lorg/apache/tomcat/util/modeler/Registry;
0 21 1 bean Ljava/lang/Object;
0 21 2 beanClass Ljava/lang/Class<*>;
0 21 3 type Ljava/lang/String;
5 21 4 managed Lorg/apache/tomcat/util/modeler/ManagedBean;
Exceptions:
throws java.lang.Exception
Signature: (Ljava/lang/Object;Ljava/lang/Class<*>;Ljava/lang/String;)Lorg/apache/tomcat/util/modeler/ManagedBean;
MethodParameters:
Name Flags
bean
beanClass
type
public java.lang.Object convertValue(java.lang.String, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/lang/String;)Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 2
astore 3
start local 3 1: aload 1
ifnull 2
ldc "java.lang.String"
aload 1
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 4
2: StackMap locals: java.lang.Object
StackMap stack:
aload 2
astore 3
3: goto 17
StackMap locals:
StackMap stack:
4: ldc "javax.management.ObjectName"
aload 1
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 5
ldc "ObjectName"
aload 1
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 9
5: StackMap locals:
StackMap stack:
new javax.management.ObjectName
dup
aload 2
invokespecial javax.management.ObjectName.<init>:(Ljava/lang/String;)V
astore 3
6: goto 17
StackMap locals:
StackMap stack: javax.management.MalformedObjectNameException
7: pop
8: aconst_null
areturn
9: StackMap locals:
StackMap stack:
ldc "java.lang.Integer"
aload 1
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 10
ldc "int"
aload 1
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 12
10: StackMap locals:
StackMap stack:
aload 2
invokestatic java.lang.Integer.valueOf:(Ljava/lang/String;)Ljava/lang/Integer;
astore 3
11: goto 17
StackMap locals:
StackMap stack:
12: ldc "java.lang.Long"
aload 1
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 13
ldc "long"
aload 1
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 15
13: StackMap locals:
StackMap stack:
aload 2
invokestatic java.lang.Long.valueOf:(Ljava/lang/String;)Ljava/lang/Long;
astore 3
14: goto 17
StackMap locals:
StackMap stack:
15: ldc "java.lang.Boolean"
aload 1
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 16
ldc "boolean"
aload 1
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 17
16: StackMap locals:
StackMap stack:
aload 2
invokestatic java.lang.Boolean.valueOf:(Ljava/lang/String;)Ljava/lang/Boolean;
astore 3
17: StackMap locals:
StackMap stack:
aload 3
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 18 0 this Lorg/apache/tomcat/util/modeler/Registry;
0 18 1 type Ljava/lang/String;
0 18 2 value Ljava/lang/String;
1 18 3 objValue Ljava/lang/Object;
Exception table:
from to target type
5 6 7 Class javax.management.MalformedObjectNameException
MethodParameters:
Name Flags
type
value
public java.util.List<javax.management.ObjectName> load(java.lang.String, , java.lang.String);
descriptor: (Ljava/lang/String;Ljava/lang/Object;Ljava/lang/String;)Ljava/util/List;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=9, args_size=4
start local 0 start local 1 start local 2 start local 3 0: getstatic org.apache.tomcat.util.modeler.Registry.log:Lorg/apache/juli/logging/Log;
invokeinterface org.apache.juli.logging.Log.isTraceEnabled:()Z
ifeq 2
1: getstatic org.apache.tomcat.util.modeler.Registry.log:Lorg/apache/juli/logging/Log;
new java.lang.StringBuilder
dup
ldc "load "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokeinterface org.apache.juli.logging.Log.trace:(Ljava/lang/Object;)V
2: StackMap locals:
StackMap stack:
aconst_null
astore 4
start local 4 3: aconst_null
astore 5
start local 5 4: aconst_null
astore 6
start local 6 5: aload 2
instanceof java.net.URL
ifeq 13
6: aload 2
checkcast java.net.URL
astore 7
start local 7 7: aload 7
invokevirtual java.net.URL.toString:()Ljava/lang/String;
astore 4
8: aload 3
astore 5
9: aload 7
invokevirtual java.net.URL.openStream:()Ljava/io/InputStream;
astore 6
10: aload 1
ifnonnull 30
aload 4
ldc ".xml"
invokevirtual java.lang.String.endsWith:(Ljava/lang/String;)Z
ifeq 30
11: ldc "MbeansDescriptorsDigesterSource"
astore 1
end local 7 12: goto 30
StackMap locals: java.lang.String java.lang.String java.lang.Object
StackMap stack:
13: aload 2
instanceof java.io.File
ifeq 20
14: aload 2
checkcast java.io.File
invokevirtual java.io.File.getAbsolutePath:()Ljava/lang/String;
astore 4
15: new java.io.FileInputStream
dup
aload 2
checkcast java.io.File
invokespecial java.io.FileInputStream.<init>:(Ljava/io/File;)V
astore 6
16: aload 3
astore 5
17: aload 1
ifnonnull 30
aload 4
ldc ".xml"
invokevirtual java.lang.String.endsWith:(Ljava/lang/String;)Z
ifeq 30
18: ldc "MbeansDescriptorsDigesterSource"
astore 1
19: goto 30
StackMap locals:
StackMap stack:
20: aload 2
instanceof java.io.InputStream
ifeq 24
21: aload 3
astore 5
22: aload 2
astore 6
23: goto 30
StackMap locals:
StackMap stack:
24: aload 2
instanceof java.lang.Class
ifeq 30
25: aload 2
checkcast java.lang.Class
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
astore 4
26: aload 3
astore 5
27: aload 2
astore 6
28: aload 1
ifnonnull 30
29: ldc "MbeansDescriptorsIntrospectionSource"
astore 1
30: StackMap locals:
StackMap stack:
aload 1
ifnonnull 32
31: ldc "MbeansDescriptorsDigesterSource"
astore 1
32: StackMap locals:
StackMap stack:
aload 0
aload 1
invokevirtual org.apache.tomcat.util.modeler.Registry.getModelerSource:(Ljava/lang/String;)Lorg/apache/tomcat/util/modeler/modules/ModelerSource;
astore 7
start local 7 33: aload 7
aload 0
aload 5
aload 6
invokevirtual org.apache.tomcat.util.modeler.modules.ModelerSource.loadDescriptors:(Lorg/apache/tomcat/util/modeler/Registry;Ljava/lang/String;Ljava/lang/Object;)Ljava/util/List;
astore 8
start local 8 34: aload 8
areturn
end local 8 end local 7 end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 35 0 this Lorg/apache/tomcat/util/modeler/Registry;
0 35 1 sourceType Ljava/lang/String;
0 35 2 source Ljava/lang/Object;
0 35 3 param Ljava/lang/String;
3 35 4 location Ljava/lang/String;
4 35 5 type Ljava/lang/String;
5 35 6 inputsource Ljava/lang/Object;
7 12 7 url Ljava/net/URL;
33 35 7 ds Lorg/apache/tomcat/util/modeler/modules/ModelerSource;
34 35 8 mbeans Ljava/util/List<Ljavax/management/ObjectName;>;
Exceptions:
throws java.lang.Exception
Signature: (Ljava/lang/String;Ljava/lang/Object;Ljava/lang/String;)Ljava/util/List<Ljavax/management/ObjectName;>;
MethodParameters:
Name Flags
sourceType
source
param
public void registerComponent(java.lang.Object, javax.management.ObjectName, java.lang.String);
descriptor: (Ljava/lang/Object;Ljavax/management/ObjectName;Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=6, args_size=4
start local 0 start local 1 start local 2 start local 3 0: getstatic org.apache.tomcat.util.modeler.Registry.log:Lorg/apache/juli/logging/Log;
invokeinterface org.apache.juli.logging.Log.isDebugEnabled:()Z
ifeq 2
1: getstatic org.apache.tomcat.util.modeler.Registry.log:Lorg/apache/juli/logging/Log;
new java.lang.StringBuilder
dup
ldc "Managed= "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokeinterface org.apache.juli.logging.Log.debug:(Ljava/lang/Object;)V
2: StackMap locals:
StackMap stack:
aload 1
ifnonnull 5
3: getstatic org.apache.tomcat.util.modeler.Registry.log:Lorg/apache/juli/logging/Log;
getstatic org.apache.tomcat.util.modeler.Registry.sm:Lorg/apache/tomcat/util/res/StringManager;
ldc "registry.nullBean"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 2
aastore
invokevirtual org.apache.tomcat.util.res.StringManager.getString:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokeinterface org.apache.juli.logging.Log.error:(Ljava/lang/Object;)V
4: return
5: StackMap locals:
StackMap stack:
aload 3
ifnonnull 7
6: aload 1
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
astore 3
7: StackMap locals:
StackMap stack:
aload 0
aconst_null
aload 1
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
aload 3
invokevirtual org.apache.tomcat.util.modeler.Registry.findManagedBean:(Ljava/lang/Object;Ljava/lang/Class;Ljava/lang/String;)Lorg/apache/tomcat/util/modeler/ManagedBean;
astore 4
start local 4 8: aload 4
aload 1
invokevirtual org.apache.tomcat.util.modeler.ManagedBean.createMBean:(Ljava/lang/Object;)Ljavax/management/DynamicMBean;
astore 5
start local 5 9: aload 0
invokevirtual org.apache.tomcat.util.modeler.Registry.getMBeanServer:()Ljavax/management/MBeanServer;
aload 2
invokeinterface javax.management.MBeanServer.isRegistered:(Ljavax/management/ObjectName;)Z
ifeq 13
10: getstatic org.apache.tomcat.util.modeler.Registry.log:Lorg/apache/juli/logging/Log;
invokeinterface org.apache.juli.logging.Log.isDebugEnabled:()Z
ifeq 12
11: getstatic org.apache.tomcat.util.modeler.Registry.log:Lorg/apache/juli/logging/Log;
new java.lang.StringBuilder
dup
ldc "Unregistering existing component "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokeinterface org.apache.juli.logging.Log.debug:(Ljava/lang/Object;)V
12: StackMap locals: org.apache.tomcat.util.modeler.ManagedBean javax.management.DynamicMBean
StackMap stack:
aload 0
invokevirtual org.apache.tomcat.util.modeler.Registry.getMBeanServer:()Ljavax/management/MBeanServer;
aload 2
invokeinterface javax.management.MBeanServer.unregisterMBean:(Ljavax/management/ObjectName;)V
13: StackMap locals:
StackMap stack:
aload 0
invokevirtual org.apache.tomcat.util.modeler.Registry.getMBeanServer:()Ljavax/management/MBeanServer;
aload 5
aload 2
invokeinterface javax.management.MBeanServer.registerMBean:(Ljava/lang/Object;Ljavax/management/ObjectName;)Ljavax/management/ObjectInstance;
pop
end local 5 end local 4 14: goto 18
StackMap locals: org.apache.tomcat.util.modeler.Registry java.lang.Object javax.management.ObjectName java.lang.String
StackMap stack: java.lang.Exception
15: astore 4
start local 4 16: getstatic org.apache.tomcat.util.modeler.Registry.log:Lorg/apache/juli/logging/Log;
getstatic org.apache.tomcat.util.modeler.Registry.sm:Lorg/apache/tomcat/util/res/StringManager;
ldc "registry.registerError"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 2
aastore
invokevirtual org.apache.tomcat.util.res.StringManager.getString:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
aload 4
invokeinterface org.apache.juli.logging.Log.error:(Ljava/lang/Object;Ljava/lang/Throwable;)V
17: aload 4
athrow
end local 4 18: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 19 0 this Lorg/apache/tomcat/util/modeler/Registry;
0 19 1 bean Ljava/lang/Object;
0 19 2 oname Ljavax/management/ObjectName;
0 19 3 type Ljava/lang/String;
8 14 4 managed Lorg/apache/tomcat/util/modeler/ManagedBean;
9 14 5 mbean Ljavax/management/DynamicMBean;
16 18 4 ex Ljava/lang/Exception;
Exception table:
from to target type
5 14 15 Class java.lang.Exception
Exceptions:
throws java.lang.Exception
MethodParameters:
Name Flags
bean
oname
type
public void loadDescriptors(java.lang.String, java.lang.ClassLoader);
descriptor: (Ljava/lang/String;Ljava/lang/ClassLoader;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=6, args_size=3
start local 0 start local 1 start local 2 0: aload 1
bipush 46
bipush 47
invokevirtual java.lang.String.replace:(CC)Ljava/lang/String;
astore 3
start local 3 1: getstatic org.apache.tomcat.util.modeler.Registry.log:Lorg/apache/juli/logging/Log;
invokeinterface org.apache.juli.logging.Log.isTraceEnabled:()Z
ifeq 3
2: getstatic org.apache.tomcat.util.modeler.Registry.log:Lorg/apache/juli/logging/Log;
new java.lang.StringBuilder
dup
ldc "Finding descriptor "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 3
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokeinterface org.apache.juli.logging.Log.trace:(Ljava/lang/Object;)V
3: StackMap locals: java.lang.String
StackMap stack:
aload 0
getfield org.apache.tomcat.util.modeler.Registry.searchedPaths:Ljava/util/Map;
aload 1
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
ifnull 5
4: return
5: StackMap locals:
StackMap stack:
new java.lang.StringBuilder
dup
aload 3
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc "/mbeans-descriptors.xml"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 4
start local 4 6: aload 2
aload 4
invokevirtual java.lang.ClassLoader.getResource:(Ljava/lang/String;)Ljava/net/URL;
astore 5
start local 5 7: aload 5
ifnonnull 9
8: return
9: StackMap locals: java.lang.String java.net.URL
StackMap stack:
getstatic org.apache.tomcat.util.modeler.Registry.log:Lorg/apache/juli/logging/Log;
new java.lang.StringBuilder
dup
ldc "Found "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 5
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokeinterface org.apache.juli.logging.Log.debug:(Ljava/lang/Object;)V
10: aload 0
getfield org.apache.tomcat.util.modeler.Registry.searchedPaths:Ljava/util/Map;
aload 1
aload 5
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
11: aload 0
ldc "MbeansDescriptorsDigesterSource"
aload 5
aconst_null
invokevirtual org.apache.tomcat.util.modeler.Registry.load:(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/String;)Ljava/util/List;
pop
12: goto 15
StackMap locals:
StackMap stack: java.lang.Exception
13: pop
14: getstatic org.apache.tomcat.util.modeler.Registry.log:Lorg/apache/juli/logging/Log;
getstatic org.apache.tomcat.util.modeler.Registry.sm:Lorg/apache/tomcat/util/res/StringManager;
ldc "registry.loadError"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 5
aastore
invokevirtual org.apache.tomcat.util.res.StringManager.getString:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokeinterface org.apache.juli.logging.Log.error:(Ljava/lang/Object;)V
15: StackMap locals:
StackMap stack:
return
end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 this Lorg/apache/tomcat/util/modeler/Registry;
0 16 1 packageName Ljava/lang/String;
0 16 2 classLoader Ljava/lang/ClassLoader;
1 16 3 res Ljava/lang/String;
6 16 4 descriptors Ljava/lang/String;
7 16 5 dURL Ljava/net/URL;
Exception table:
from to target type
11 12 13 Class java.lang.Exception
MethodParameters:
Name Flags
packageName
classLoader
private void findDescriptor(java.lang.Class<?>, java.lang.String);
descriptor: (Ljava/lang/Class;Ljava/lang/String;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=7, args_size=3
start local 0 start local 1 start local 2 0: aload 2
ifnonnull 2
1: aload 1
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
astore 2
2: StackMap locals:
StackMap stack:
aconst_null
astore 3
start local 3 3: aload 1
ifnull 5
4: aload 1
invokevirtual java.lang.Class.getClassLoader:()Ljava/lang/ClassLoader;
astore 3
5: StackMap locals: java.lang.ClassLoader
StackMap stack:
aload 3
ifnonnull 7
6: invokestatic java.lang.Thread.currentThread:()Ljava/lang/Thread;
invokevirtual java.lang.Thread.getContextClassLoader:()Ljava/lang/ClassLoader;
astore 3
7: StackMap locals:
StackMap stack:
aload 3
ifnonnull 9
8: aload 0
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokevirtual java.lang.Class.getClassLoader:()Ljava/lang/ClassLoader;
astore 3
9: StackMap locals:
StackMap stack:
aload 2
astore 4
start local 4 10: aload 4
astore 5
start local 5 11: goto 19
12: StackMap locals: java.lang.String java.lang.String
StackMap stack:
aload 5
ldc "."
invokevirtual java.lang.String.lastIndexOf:(Ljava/lang/String;)I
istore 6
start local 6 13: iload 6
ifgt 15
14: return
15: StackMap locals: int
StackMap stack:
aload 5
iconst_0
iload 6
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
astore 5
16: aload 0
getfield org.apache.tomcat.util.modeler.Registry.searchedPaths:Ljava/util/Map;
aload 5
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
ifnull 18
17: return
18: StackMap locals:
StackMap stack:
aload 0
aload 5
aload 3
invokevirtual org.apache.tomcat.util.modeler.Registry.loadDescriptors:(Ljava/lang/String;Ljava/lang/ClassLoader;)V
end local 6 19: StackMap locals:
StackMap stack:
aload 5
ldc "."
invokevirtual java.lang.String.indexOf:(Ljava/lang/String;)I
ifgt 12
20: return
end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 21 0 this Lorg/apache/tomcat/util/modeler/Registry;
0 21 1 beanClass Ljava/lang/Class<*>;
0 21 2 type Ljava/lang/String;
3 21 3 classLoader Ljava/lang/ClassLoader;
10 21 4 className Ljava/lang/String;
11 21 5 pkg Ljava/lang/String;
13 19 6 lastComp I
Signature: (Ljava/lang/Class<*>;Ljava/lang/String;)V
MethodParameters:
Name Flags
beanClass
type
private org.apache.tomcat.util.modeler.modules.ModelerSource getModelerSource(java.lang.String);
descriptor: (Ljava/lang/String;)Lorg/apache/tomcat/util/modeler/modules/ModelerSource;
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=4, args_size=2
start local 0 start local 1 0: aload 1
ifnonnull 2
1: ldc "MbeansDescriptorsDigesterSource"
astore 1
2: StackMap locals:
StackMap stack:
aload 1
ldc "."
invokevirtual java.lang.String.contains:(Ljava/lang/CharSequence;)Z
ifne 4
3: new java.lang.StringBuilder
dup
ldc "org.apache.tomcat.util.modeler.modules."
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 1
4: StackMap locals:
StackMap stack:
aload 1
invokestatic java.lang.Class.forName:(Ljava/lang/String;)Ljava/lang/Class;
astore 2
start local 2 5: aload 2
iconst_0
anewarray java.lang.Class
invokevirtual java.lang.Class.getConstructor:([Ljava/lang/Class;)Ljava/lang/reflect/Constructor;
iconst_0
anewarray java.lang.Object
invokevirtual java.lang.reflect.Constructor.newInstance:([Ljava/lang/Object;)Ljava/lang/Object;
checkcast org.apache.tomcat.util.modeler.modules.ModelerSource
astore 3
start local 3 6: aload 3
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/apache/tomcat/util/modeler/Registry;
0 7 1 type Ljava/lang/String;
5 7 2 c Ljava/lang/Class<*>;
6 7 3 ds Lorg/apache/tomcat/util/modeler/modules/ModelerSource;
Exceptions:
throws java.lang.Exception
MethodParameters:
Name Flags
type
public javax.management.ObjectName preRegister(javax.management.MBeanServer, javax.management.ObjectName);
descriptor: (Ljavax/management/MBeanServer;Ljavax/management/ObjectName;)Ljavax/management/ObjectName;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield org.apache.tomcat.util.modeler.Registry.serverLock:Ljava/lang/Object;
dup
astore 3
monitorenter
1: aload 0
aload 1
putfield org.apache.tomcat.util.modeler.Registry.server:Ljavax/management/MBeanServer;
2: aload 3
monitorexit
3: goto 6
StackMap locals: org.apache.tomcat.util.modeler.Registry javax.management.MBeanServer javax.management.ObjectName java.lang.Object
StackMap stack: java.lang.Throwable
4: aload 3
monitorexit
5: athrow
6: StackMap locals:
StackMap stack:
aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/apache/tomcat/util/modeler/Registry;
0 7 1 server Ljavax/management/MBeanServer;
0 7 2 name Ljavax/management/ObjectName;
Exception table:
from to target type
1 3 4 any
4 5 4 any
Exceptions:
throws java.lang.Exception
MethodParameters:
Name Flags
server
name
public void postRegister(java.lang.Boolean);
descriptor: (Ljava/lang/Boolean;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=0, locals=2, args_size=2
start local 0 start local 1 0: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/tomcat/util/modeler/Registry;
0 1 1 registrationDone Ljava/lang/Boolean;
MethodParameters:
Name Flags
registrationDone
public void preDeregister();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=0, locals=1, args_size=1
start local 0 0: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/tomcat/util/modeler/Registry;
Exceptions:
throws java.lang.Exception
public void postDeregister();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=0, locals=1, args_size=1
start local 0 0: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/tomcat/util/modeler/Registry;
}
SourceFile: "Registry.java"