public class com.codahale.metrics.jmx.DefaultObjectNameFactory implements com.codahale.metrics.jmx.ObjectNameFactory
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: com.codahale.metrics.jmx.DefaultObjectNameFactory
super_class: java.lang.Object
{
private static final org.slf4j.Logger LOGGER;
descriptor: Lorg/slf4j/Logger;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc Lcom/codahale/metrics/jmx/JmxReporter;
invokestatic org.slf4j.LoggerFactory.getLogger:(Ljava/lang/Class;)Lorg/slf4j/Logger;
putstatic com.codahale.metrics.jmx.DefaultObjectNameFactory.LOGGER:Lorg/slf4j/Logger;
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/codahale/metrics/jmx/DefaultObjectNameFactory;
public javax.management.ObjectName createName(java.lang.String, java.lang.String, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljavax/management/ObjectName;
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=6, args_size=4
start local 0 start local 1 start local 2 start local 3 0: new java.util.Hashtable
dup
invokespecial java.util.Hashtable.<init>:()V
astore 5
start local 5 1: aload 5
ldc "name"
aload 3
invokevirtual java.util.Hashtable.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
2: aload 5
ldc "type"
aload 1
invokevirtual java.util.Hashtable.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
3: new javax.management.ObjectName
dup
aload 2
aload 5
invokespecial javax.management.ObjectName.<init>:(Ljava/lang/String;Ljava/util/Hashtable;)V
astore 4
start local 4 4: aload 4
invokevirtual javax.management.ObjectName.isDomainPattern:()Z
ifeq 6
5: aload 2
invokestatic javax.management.ObjectName.quote:(Ljava/lang/String;)Ljava/lang/String;
astore 2
6: StackMap locals: javax.management.ObjectName java.util.Hashtable
StackMap stack:
aload 4
ldc "name"
invokevirtual javax.management.ObjectName.isPropertyValuePattern:(Ljava/lang/String;)Z
ifeq 8
7: aload 5
ldc "name"
aload 3
invokestatic javax.management.ObjectName.quote:(Ljava/lang/String;)Ljava/lang/String;
invokevirtual java.util.Hashtable.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
8: StackMap locals:
StackMap stack:
aload 4
ldc "type"
invokevirtual javax.management.ObjectName.isPropertyValuePattern:(Ljava/lang/String;)Z
ifeq 10
9: aload 5
ldc "type"
aload 1
invokestatic javax.management.ObjectName.quote:(Ljava/lang/String;)Ljava/lang/String;
invokevirtual java.util.Hashtable.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
10: StackMap locals:
StackMap stack:
new javax.management.ObjectName
dup
aload 2
aload 5
invokespecial javax.management.ObjectName.<init>:(Ljava/lang/String;Ljava/util/Hashtable;)V
astore 4
11: aload 4
12: areturn
end local 5 end local 4 13: StackMap locals: com.codahale.metrics.jmx.DefaultObjectNameFactory java.lang.String java.lang.String java.lang.String
StackMap stack: javax.management.MalformedObjectNameException
pop
14: new javax.management.ObjectName
dup
aload 2
ldc "name"
aload 3
invokestatic javax.management.ObjectName.quote:(Ljava/lang/String;)Ljava/lang/String;
invokespecial javax.management.ObjectName.<init>:(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
15: areturn
16: StackMap locals:
StackMap stack: javax.management.MalformedObjectNameException
astore 4
start local 4 17: getstatic com.codahale.metrics.jmx.DefaultObjectNameFactory.LOGGER:Lorg/slf4j/Logger;
ldc "Unable to register {} {}"
iconst_3
anewarray java.lang.Object
dup
iconst_0
aload 1
aastore
dup
iconst_1
aload 3
aastore
dup
iconst_2
aload 4
aastore
invokeinterface org.slf4j.Logger.warn:(Ljava/lang/String;[Ljava/lang/Object;)V
18: new java.lang.RuntimeException
dup
aload 4
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/Throwable;)V
athrow
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 19 0 this Lcom/codahale/metrics/jmx/DefaultObjectNameFactory;
0 19 1 type Ljava/lang/String;
0 19 2 domain Ljava/lang/String;
0 19 3 name Ljava/lang/String;
4 13 4 objectName Ljavax/management/ObjectName;
1 13 5 properties Ljava/util/Hashtable<Ljava/lang/String;Ljava/lang/String;>;
17 19 4 e1 Ljavax/management/MalformedObjectNameException;
Exception table:
from to target type
0 12 13 Class javax.management.MalformedObjectNameException
14 15 16 Class javax.management.MalformedObjectNameException
MethodParameters:
Name Flags
type
domain
name
}
SourceFile: "DefaultObjectNameFactory.java"