public class ch.qos.logback.classic.joran.action.InsertFromJNDIAction 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.InsertFromJNDIAction
super_class: ch.qos.logback.core.joran.action.Action
{
public static final java.lang.String ENV_ENTRY_NAME_ATTR;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "env-entry-name"
public static final java.lang.String AS_ATTR;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "as"
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/InsertFromJNDIAction;
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=4, locals=11, args_size=4
start local 0 start local 1 start local 2 start local 3 0: iconst_0
istore 4
start local 4 1: aload 1
aload 3
ldc "env-entry-name"
invokeinterface org.xml.sax.Attributes.getValue:(Ljava/lang/String;)Ljava/lang/String;
invokevirtual ch.qos.logback.core.joran.spi.InterpretationContext.subst:(Ljava/lang/String;)Ljava/lang/String;
astore 5
start local 5 2: aload 1
aload 3
ldc "as"
invokeinterface org.xml.sax.Attributes.getValue:(Ljava/lang/String;)Ljava/lang/String;
invokevirtual ch.qos.logback.core.joran.spi.InterpretationContext.subst:(Ljava/lang/String;)Ljava/lang/String;
astore 6
start local 6 3: aload 3
ldc "scope"
invokeinterface org.xml.sax.Attributes.getValue:(Ljava/lang/String;)Ljava/lang/String;
astore 7
start local 7 4: aload 7
invokestatic ch.qos.logback.core.joran.action.ActionUtil.stringToScope:(Ljava/lang/String;)Lch/qos/logback/core/joran/action/ActionUtil$Scope;
astore 8
start local 8 5: aload 5
invokestatic ch.qos.logback.core.util.OptionHelper.isEmpty:(Ljava/lang/String;)Z
ifeq 9
6: aload 0
aload 1
invokevirtual ch.qos.logback.classic.joran.action.InsertFromJNDIAction.getLineColStr:(Lch/qos/logback/core/joran/spi/InterpretationContext;)Ljava/lang/String;
astore 10
start local 10 7: aload 0
new java.lang.StringBuilder
dup
ldc "[env-entry-name] missing, around "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 10
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.InsertFromJNDIAction.addError:(Ljava/lang/String;)V
8: iinc 4 1
end local 10 9: StackMap locals: ch.qos.logback.classic.joran.action.InsertFromJNDIAction ch.qos.logback.core.joran.spi.InterpretationContext java.lang.String org.xml.sax.Attributes int java.lang.String java.lang.String java.lang.String ch.qos.logback.core.joran.action.ActionUtil$Scope
StackMap stack:
aload 6
invokestatic ch.qos.logback.core.util.OptionHelper.isEmpty:(Ljava/lang/String;)Z
ifeq 13
10: aload 0
aload 1
invokevirtual ch.qos.logback.classic.joran.action.InsertFromJNDIAction.getLineColStr:(Lch/qos/logback/core/joran/spi/InterpretationContext;)Ljava/lang/String;
astore 10
start local 10 11: aload 0
new java.lang.StringBuilder
dup
ldc "[as] missing, around "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 10
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.InsertFromJNDIAction.addError:(Ljava/lang/String;)V
12: iinc 4 1
end local 10 13: StackMap locals:
StackMap stack:
iload 4
ifeq 15
14: return
15: StackMap locals:
StackMap stack:
invokestatic ch.qos.logback.classic.util.JNDIUtil.getInitialContext:()Ljavax/naming/Context;
astore 10
start local 10 16: aload 10
aload 5
invokestatic ch.qos.logback.classic.util.JNDIUtil.lookup:(Ljavax/naming/Context;Ljava/lang/String;)Ljava/lang/String;
astore 9
start local 9 17: aload 9
invokestatic ch.qos.logback.core.util.OptionHelper.isEmpty:(Ljava/lang/String;)Z
ifeq 20
18: aload 0
new java.lang.StringBuilder
dup
ldc "["
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 5
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "] has null or empty value"
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.InsertFromJNDIAction.addError:(Ljava/lang/String;)V
19: goto 25
20: StackMap locals: java.lang.String javax.naming.Context
StackMap stack:
aload 0
new java.lang.StringBuilder
dup
ldc "Setting variable ["
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 6
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "] to ["
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 9
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "] in ["
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 8
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc "] scope"
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.InsertFromJNDIAction.addInfo:(Ljava/lang/String;)V
21: aload 1
aload 6
aload 9
aload 8
invokestatic ch.qos.logback.core.joran.action.ActionUtil.setProperty:(Lch/qos/logback/core/joran/spi/InterpretationContext;Ljava/lang/String;Ljava/lang/String;Lch/qos/logback/core/joran/action/ActionUtil$Scope;)V
end local 10 22: goto 25
end local 9 StackMap locals: ch.qos.logback.classic.joran.action.InsertFromJNDIAction ch.qos.logback.core.joran.spi.InterpretationContext java.lang.String org.xml.sax.Attributes int java.lang.String java.lang.String java.lang.String ch.qos.logback.core.joran.action.ActionUtil$Scope
StackMap stack: javax.naming.NamingException
23: pop
24: aload 0
new java.lang.StringBuilder
dup
ldc "Failed to lookup JNDI env-entry ["
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 5
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.InsertFromJNDIAction.addError:(Ljava/lang/String;)V
25: StackMap locals:
StackMap stack:
return
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 26 0 this Lch/qos/logback/classic/joran/action/InsertFromJNDIAction;
0 26 1 ec Lch/qos/logback/core/joran/spi/InterpretationContext;
0 26 2 name Ljava/lang/String;
0 26 3 attributes Lorg/xml/sax/Attributes;
1 26 4 errorCount I
2 26 5 envEntryName Ljava/lang/String;
3 26 6 asKey Ljava/lang/String;
4 26 7 scopeStr Ljava/lang/String;
5 26 8 scope Lch/qos/logback/core/joran/action/ActionUtil$Scope;
17 23 9 envEntryValue Ljava/lang/String;
7 9 10 lineColStr Ljava/lang/String;
11 13 10 lineColStr Ljava/lang/String;
16 22 10 ctx Ljavax/naming/Context;
Exception table:
from to target type
15 22 23 Class javax.naming.NamingException
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/InsertFromJNDIAction;
0 1 1 ec Lch/qos/logback/core/joran/spi/InterpretationContext;
0 1 2 name Ljava/lang/String;
MethodParameters:
Name Flags
ec
name
}
SourceFile: "InsertFromJNDIAction.java"
InnerClasses:
public final Scope = ch.qos.logback.core.joran.action.ActionUtil$Scope of ch.qos.logback.core.joran.action.ActionUtil