public class ch.qos.logback.classic.joran.action.JMXConfiguratorAction extends ch.qos.logback.core.joran.action.Action
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: ch.qos.logback.classic.joran.action.JMXConfiguratorAction
super_class: ch.qos.logback.core.joran.action.Action
{
static final java.lang.String OBJECT_NAME_ATTRIBUTE_NAME;
descriptor: Ljava/lang/String;
flags: (0x0018) ACC_STATIC, ACC_FINAL
ConstantValue: "objectName"
static final java.lang.String CONTEXT_NAME_ATTRIBUTE_NAME;
descriptor: Ljava/lang/String;
flags: (0x0018) ACC_STATIC, ACC_FINAL
ConstantValue: "contextName"
static final char JMX_NAME_SEPARATOR;
descriptor: C
flags: (0x0018) ACC_STATIC, ACC_FINAL
ConstantValue: 44
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial ch.qos.logback.core.joran.action.Action.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lch/qos/logback/classic/joran/action/JMXConfiguratorAction;
public void begin(ch.qos.logback.core.joran.spi.InterpretationContext, java.lang.String, org.xml.sax.Attributes);
descriptor: (Lch/qos/logback/core/joran/spi/InterpretationContext;Ljava/lang/String;Lorg/xml/sax/Attributes;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=12, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
ldc "begin"
invokevirtual ch.qos.logback.classic.joran.action.JMXConfiguratorAction.addInfo:(Ljava/lang/String;)V
1: aload 0
getfield ch.qos.logback.classic.joran.action.JMXConfiguratorAction.context:Lch/qos/logback/core/Context;
invokeinterface ch.qos.logback.core.Context.getName:()Ljava/lang/String;
astore 4
start local 4 2: aload 3
ldc "contextName"
invokeinterface org.xml.sax.Attributes.getValue:(Ljava/lang/String;)Ljava/lang/String;
astore 5
start local 5 3: aload 5
invokestatic ch.qos.logback.core.util.OptionHelper.isEmpty:(Ljava/lang/String;)Z
ifne 5
4: aload 5
astore 4
5: StackMap locals: java.lang.String java.lang.String
StackMap stack:
aload 3
ldc "objectName"
invokeinterface org.xml.sax.Attributes.getValue:(Ljava/lang/String;)Ljava/lang/String;
astore 7
start local 7 6: aload 7
invokestatic ch.qos.logback.core.util.OptionHelper.isEmpty:(Ljava/lang/String;)Z
ifeq 9
7: aload 4
ldc Lch/qos/logback/classic/jmx/JMXConfigurator;
invokestatic ch.qos.logback.classic.jmx.MBeanUtil.getObjectNameFor:(Ljava/lang/String;Ljava/lang/Class;)Ljava/lang/String;
astore 6
start local 6 8: goto 10
end local 6 9: StackMap locals: ch.qos.logback.classic.joran.action.JMXConfiguratorAction ch.qos.logback.core.joran.spi.InterpretationContext java.lang.String org.xml.sax.Attributes java.lang.String java.lang.String top java.lang.String
StackMap stack:
aload 7
astore 6
start local 6 10: StackMap locals: ch.qos.logback.classic.joran.action.JMXConfiguratorAction ch.qos.logback.core.joran.spi.InterpretationContext java.lang.String org.xml.sax.Attributes java.lang.String java.lang.String java.lang.String java.lang.String
StackMap stack:
aload 0
getfield ch.qos.logback.classic.joran.action.JMXConfiguratorAction.context:Lch/qos/logback/core/Context;
aload 0
aload 6
invokestatic ch.qos.logback.classic.jmx.MBeanUtil.string2ObjectName:(Lch/qos/logback/core/Context;Ljava/lang/Object;Ljava/lang/String;)Ljavax/management/ObjectName;
astore 8
start local 8 11: aload 8
ifnonnull 14
12: aload 0
new java.lang.StringBuilder
dup
ldc "Failed construct ObjectName for ["
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 6
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "]"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual ch.qos.logback.classic.joran.action.JMXConfiguratorAction.addError:(Ljava/lang/String;)V
13: return
14: StackMap locals: javax.management.ObjectName
StackMap stack:
invokestatic java.lang.management.ManagementFactory.getPlatformMBeanServer:()Ljavax/management/MBeanServer;
astore 9
start local 9 15: aload 9
aload 8
invokestatic ch.qos.logback.classic.jmx.MBeanUtil.isRegistered:(Ljavax/management/MBeanServer;Ljavax/management/ObjectName;)Z
ifne 21
16: new ch.qos.logback.classic.jmx.JMXConfigurator
dup
aload 0
getfield ch.qos.logback.classic.joran.action.JMXConfiguratorAction.context:Lch/qos/logback/core/Context;
checkcast ch.qos.logback.classic.LoggerContext
aload 9
aload 8
invokespecial ch.qos.logback.classic.jmx.JMXConfigurator.<init>:(Lch/qos/logback/classic/LoggerContext;Ljavax/management/MBeanServer;Ljavax/management/ObjectName;)V
astore 10
start local 10 17: aload 9
aload 10
aload 8
invokeinterface javax.management.MBeanServer.registerMBean:(Ljava/lang/Object;Ljavax/management/ObjectName;)Ljavax/management/ObjectInstance;
pop
18: goto 21
StackMap locals: ch.qos.logback.classic.joran.action.JMXConfiguratorAction ch.qos.logback.core.joran.spi.InterpretationContext java.lang.String org.xml.sax.Attributes java.lang.String java.lang.String java.lang.String java.lang.String javax.management.ObjectName javax.management.MBeanServer ch.qos.logback.classic.jmx.JMXConfigurator
StackMap stack: java.lang.Exception
19: astore 11
start local 11 20: aload 0
ldc "Failed to create mbean"
aload 11
invokevirtual ch.qos.logback.classic.joran.action.JMXConfiguratorAction.addError:(Ljava/lang/String;Ljava/lang/Throwable;)V
end local 11 end local 10 21: StackMap locals:
StackMap stack:
return
end local 9 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 22 0 this Lch/qos/logback/classic/joran/action/JMXConfiguratorAction;
0 22 1 ec Lch/qos/logback/core/joran/spi/InterpretationContext;
0 22 2 name Ljava/lang/String;
0 22 3 attributes Lorg/xml/sax/Attributes;
2 22 4 contextName Ljava/lang/String;
3 22 5 contextNameAttributeVal Ljava/lang/String;
8 9 6 objectNameAsStr Ljava/lang/String;
10 22 6 objectNameAsStr Ljava/lang/String;
6 22 7 objectNameAttributeVal Ljava/lang/String;
11 22 8 objectName Ljavax/management/ObjectName;
15 22 9 mbs Ljavax/management/MBeanServer;
17 21 10 jmxConfigurator Lch/qos/logback/classic/jmx/JMXConfigurator;
20 21 11 e Ljava/lang/Exception;
Exception table:
from to target type
17 18 19 Class java.lang.Exception
Exceptions:
throws ch.qos.logback.core.joran.spi.ActionException
MethodParameters:
Name Flags
ec
name
attributes
public void end(ch.qos.logback.core.joran.spi.InterpretationContext, java.lang.String);
descriptor: (Lch/qos/logback/core/joran/spi/InterpretationContext;Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=0, locals=3, args_size=3
start local 0 start local 1 start local 2 0: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lch/qos/logback/classic/joran/action/JMXConfiguratorAction;
0 1 1 ec Lch/qos/logback/core/joran/spi/InterpretationContext;
0 1 2 name Ljava/lang/String;
Exceptions:
throws ch.qos.logback.core.joran.spi.ActionException
MethodParameters:
Name Flags
ec
name
}
SourceFile: "JMXConfiguratorAction.java"