public class ch.qos.logback.classic.util.ContextInitializer
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: ch.qos.logback.classic.util.ContextInitializer
super_class: java.lang.Object
{
public static final java.lang.String GROOVY_AUTOCONFIG_FILE;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "logback.groovy"
public static final java.lang.String AUTOCONFIG_FILE;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "logback.xml"
public static final java.lang.String TEST_AUTOCONFIG_FILE;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "logback-test.xml"
public static final java.lang.String CONFIG_FILE_PROPERTY;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "logback.configurationFile"
final ch.qos.logback.classic.LoggerContext loggerContext;
descriptor: Lch/qos/logback/classic/LoggerContext;
flags: (0x0010) ACC_FINAL
public void <init>(ch.qos.logback.classic.LoggerContext);
descriptor: (Lch/qos/logback/classic/LoggerContext;)V
flags: (0x0001) ACC_PUBLIC
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
aload 1
putfield ch.qos.logback.classic.util.ContextInitializer.loggerContext:Lch/qos/logback/classic/LoggerContext;
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lch/qos/logback/classic/util/ContextInitializer;
0 3 1 loggerContext Lch/qos/logback/classic/LoggerContext;
MethodParameters:
Name Flags
loggerContext
public void configureByResource(java.net.URL);
descriptor: (Ljava/net/URL;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=4, args_size=2
start local 0 start local 1 0: aload 1
ifnonnull 2
1: new java.lang.IllegalArgumentException
dup
ldc "URL argument cannot be null"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 1
invokevirtual java.net.URL.toString:()Ljava/lang/String;
astore 2
start local 2 3: aload 2
ldc "groovy"
invokevirtual java.lang.String.endsWith:(Ljava/lang/String;)Z
ifeq 10
4: invokestatic ch.qos.logback.classic.util.EnvUtil.isGroovyAvailable:()Z
ifeq 7
5: aload 0
getfield ch.qos.logback.classic.util.ContextInitializer.loggerContext:Lch/qos/logback/classic/LoggerContext;
aload 0
aload 1
invokestatic ch.qos.logback.classic.gaffer.GafferUtil.runGafferConfiguratorOn:(Lch/qos/logback/classic/LoggerContext;Ljava/lang/Object;Ljava/net/URL;)V
6: goto 16
7: StackMap locals: java.lang.String
StackMap stack:
aload 0
getfield ch.qos.logback.classic.util.ContextInitializer.loggerContext:Lch/qos/logback/classic/LoggerContext;
invokevirtual ch.qos.logback.classic.LoggerContext.getStatusManager:()Lch/qos/logback/core/status/StatusManager;
astore 3
start local 3 8: aload 3
new ch.qos.logback.core.status.ErrorStatus
dup
ldc "Groovy classes are not available on the class path. ABORTING INITIALIZATION."
aload 0
getfield ch.qos.logback.classic.util.ContextInitializer.loggerContext:Lch/qos/logback/classic/LoggerContext;
invokespecial ch.qos.logback.core.status.ErrorStatus.<init>:(Ljava/lang/String;Ljava/lang/Object;)V
invokeinterface ch.qos.logback.core.status.StatusManager.add:(Lch/qos/logback/core/status/Status;)V
end local 3 9: goto 16
StackMap locals:
StackMap stack:
10: aload 2
ldc "xml"
invokevirtual java.lang.String.endsWith:(Ljava/lang/String;)Z
ifeq 15
11: new ch.qos.logback.classic.joran.JoranConfigurator
dup
invokespecial ch.qos.logback.classic.joran.JoranConfigurator.<init>:()V
astore 3
start local 3 12: aload 3
aload 0
getfield ch.qos.logback.classic.util.ContextInitializer.loggerContext:Lch/qos/logback/classic/LoggerContext;
invokevirtual ch.qos.logback.classic.joran.JoranConfigurator.setContext:(Lch/qos/logback/core/Context;)V
13: aload 3
aload 1
invokevirtual ch.qos.logback.classic.joran.JoranConfigurator.doConfigure:(Ljava/net/URL;)V
end local 3 14: goto 16
15: StackMap locals:
StackMap stack:
new ch.qos.logback.core.LogbackException
dup
new java.lang.StringBuilder
dup
ldc "Unexpected filename extension of file ["
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.net.URL.toString:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "]. Should be either .groovy or .xml"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial ch.qos.logback.core.LogbackException.<init>:(Ljava/lang/String;)V
athrow
16: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 17 0 this Lch/qos/logback/classic/util/ContextInitializer;
0 17 1 url Ljava/net/URL;
3 17 2 urlString Ljava/lang/String;
8 9 3 sm Lch/qos/logback/core/status/StatusManager;
12 14 3 configurator Lch/qos/logback/classic/joran/JoranConfigurator;
Exceptions:
throws ch.qos.logback.core.joran.spi.JoranException
MethodParameters:
Name Flags
url
void joranConfigureByResource(java.net.URL);
descriptor: (Ljava/net/URL;)V
flags: (0x0000)
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: new ch.qos.logback.classic.joran.JoranConfigurator
dup
invokespecial ch.qos.logback.classic.joran.JoranConfigurator.<init>:()V
astore 2
start local 2 1: aload 2
aload 0
getfield ch.qos.logback.classic.util.ContextInitializer.loggerContext:Lch/qos/logback/classic/LoggerContext;
invokevirtual ch.qos.logback.classic.joran.JoranConfigurator.setContext:(Lch/qos/logback/core/Context;)V
2: aload 2
aload 1
invokevirtual ch.qos.logback.classic.joran.JoranConfigurator.doConfigure:(Ljava/net/URL;)V
3: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lch/qos/logback/classic/util/ContextInitializer;
0 4 1 url Ljava/net/URL;
1 4 2 configurator Lch/qos/logback/classic/joran/JoranConfigurator;
Exceptions:
throws ch.qos.logback.core.joran.spi.JoranException
MethodParameters:
Name Flags
url
private java.net.URL findConfigFileURLFromSystemProperties(java.lang.ClassLoader, boolean);
descriptor: (Ljava/lang/ClassLoader;Z)Ljava/net/URL;
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=8, args_size=3
start local 0 start local 1 start local 2 0: ldc "logback.configurationFile"
invokestatic ch.qos.logback.core.util.OptionHelper.getSystemProperty:(Ljava/lang/String;)Ljava/lang/String;
astore 3
start local 3 1: aload 3
ifnull 29
2: aconst_null
astore 4
start local 4 3: new java.net.URL
dup
aload 3
invokespecial java.net.URL.<init>:(Ljava/lang/String;)V
astore 4
4: aload 4
astore 7
5: iload 2
ifeq 7
6: aload 0
aload 3
aload 1
aload 4
invokevirtual ch.qos.logback.classic.util.ContextInitializer.statusOnResourceSearch:(Ljava/lang/String;Ljava/lang/ClassLoader;Ljava/net/URL;)V
7: StackMap locals: ch.qos.logback.classic.util.ContextInitializer java.lang.ClassLoader int java.lang.String java.net.URL top top java.net.URL
StackMap stack:
aload 7
areturn
8: StackMap locals: ch.qos.logback.classic.util.ContextInitializer java.lang.ClassLoader int java.lang.String java.net.URL
StackMap stack: java.net.MalformedURLException
pop
9: aload 3
aload 1
invokestatic ch.qos.logback.core.util.Loader.getResource:(Ljava/lang/String;Ljava/lang/ClassLoader;)Ljava/net/URL;
astore 4
10: aload 4
ifnull 15
11: aload 4
astore 7
12: iload 2
ifeq 14
13: aload 0
aload 3
aload 1
aload 4
invokevirtual ch.qos.logback.classic.util.ContextInitializer.statusOnResourceSearch:(Ljava/lang/String;Ljava/lang/ClassLoader;Ljava/net/URL;)V
14: StackMap locals: ch.qos.logback.classic.util.ContextInitializer java.lang.ClassLoader int java.lang.String java.net.URL top top java.net.URL
StackMap stack:
aload 7
areturn
15: StackMap locals: ch.qos.logback.classic.util.ContextInitializer java.lang.ClassLoader int java.lang.String java.net.URL
StackMap stack:
new java.io.File
dup
aload 3
invokespecial java.io.File.<init>:(Ljava/lang/String;)V
astore 5
start local 5 16: aload 5
invokevirtual java.io.File.exists:()Z
ifeq 23
aload 5
invokevirtual java.io.File.isFile:()Z
ifeq 23
17: aload 5
invokevirtual java.io.File.toURI:()Ljava/net/URI;
invokevirtual java.net.URI.toURL:()Ljava/net/URL;
astore 4
18: aload 4
astore 7
19: iload 2
ifeq 21
20: aload 0
aload 3
aload 1
aload 4
invokevirtual ch.qos.logback.classic.util.ContextInitializer.statusOnResourceSearch:(Ljava/lang/String;Ljava/lang/ClassLoader;Ljava/net/URL;)V
21: StackMap locals: ch.qos.logback.classic.util.ContextInitializer java.lang.ClassLoader int java.lang.String java.net.URL java.io.File top java.net.URL
StackMap stack:
aload 7
areturn
22: StackMap locals: ch.qos.logback.classic.util.ContextInitializer java.lang.ClassLoader int java.lang.String java.net.URL java.io.File
StackMap stack: java.net.MalformedURLException
pop
end local 5 23: StackMap locals:
StackMap stack:
iload 2
ifeq 29
24: aload 0
aload 3
aload 1
aload 4
invokevirtual ch.qos.logback.classic.util.ContextInitializer.statusOnResourceSearch:(Ljava/lang/String;Ljava/lang/ClassLoader;Ljava/net/URL;)V
goto 29
25: StackMap locals:
StackMap stack: java.lang.Throwable
astore 6
26: iload 2
ifeq 28
27: aload 0
aload 3
aload 1
aload 4
invokevirtual ch.qos.logback.classic.util.ContextInitializer.statusOnResourceSearch:(Ljava/lang/String;Ljava/lang/ClassLoader;Ljava/net/URL;)V
28: StackMap locals: ch.qos.logback.classic.util.ContextInitializer java.lang.ClassLoader int java.lang.String java.net.URL top java.lang.Throwable
StackMap stack:
aload 6
athrow
end local 4 29: StackMap locals: ch.qos.logback.classic.util.ContextInitializer java.lang.ClassLoader int java.lang.String
StackMap stack:
aconst_null
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 30 0 this Lch/qos/logback/classic/util/ContextInitializer;
0 30 1 classLoader Ljava/lang/ClassLoader;
0 30 2 updateStatus Z
1 30 3 logbackConfigFile Ljava/lang/String;
3 29 4 result Ljava/net/URL;
16 23 5 f Ljava/io/File;
Exception table:
from to target type
3 5 8 Class java.net.MalformedURLException
17 19 22 Class java.net.MalformedURLException
3 5 25 any
8 12 25 any
15 19 25 any
22 23 25 any
MethodParameters:
Name Flags
classLoader
updateStatus
public java.net.URL findURLOfDefaultConfigurationFile(boolean);
descriptor: (Z)Ljava/net/URL;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=4, args_size=2
start local 0 start local 1 0: aload 0
invokestatic ch.qos.logback.core.util.Loader.getClassLoaderOfObject:(Ljava/lang/Object;)Ljava/lang/ClassLoader;
astore 2
start local 2 1: aload 0
aload 2
iload 1
invokevirtual ch.qos.logback.classic.util.ContextInitializer.findConfigFileURLFromSystemProperties:(Ljava/lang/ClassLoader;Z)Ljava/net/URL;
astore 3
start local 3 2: aload 3
ifnull 4
3: aload 3
areturn
4: StackMap locals: java.lang.ClassLoader java.net.URL
StackMap stack:
aload 0
ldc "logback-test.xml"
aload 2
iload 1
invokevirtual ch.qos.logback.classic.util.ContextInitializer.getResource:(Ljava/lang/String;Ljava/lang/ClassLoader;Z)Ljava/net/URL;
astore 3
5: aload 3
ifnull 7
6: aload 3
areturn
7: StackMap locals:
StackMap stack:
aload 0
ldc "logback.groovy"
aload 2
iload 1
invokevirtual ch.qos.logback.classic.util.ContextInitializer.getResource:(Ljava/lang/String;Ljava/lang/ClassLoader;Z)Ljava/net/URL;
astore 3
8: aload 3
ifnull 10
9: aload 3
areturn
10: StackMap locals:
StackMap stack:
aload 0
ldc "logback.xml"
aload 2
iload 1
invokevirtual ch.qos.logback.classic.util.ContextInitializer.getResource:(Ljava/lang/String;Ljava/lang/ClassLoader;Z)Ljava/net/URL;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lch/qos/logback/classic/util/ContextInitializer;
0 11 1 updateStatus Z
1 11 2 myClassLoader Ljava/lang/ClassLoader;
2 11 3 url Ljava/net/URL;
MethodParameters:
Name Flags
updateStatus
private java.net.URL getResource(java.lang.String, java.lang.ClassLoader, boolean);
descriptor: (Ljava/lang/String;Ljava/lang/ClassLoader;Z)Ljava/net/URL;
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 1
aload 2
invokestatic ch.qos.logback.core.util.Loader.getResource:(Ljava/lang/String;Ljava/lang/ClassLoader;)Ljava/net/URL;
astore 4
start local 4 1: iload 3
ifeq 3
2: aload 0
aload 1
aload 2
aload 4
invokevirtual ch.qos.logback.classic.util.ContextInitializer.statusOnResourceSearch:(Ljava/lang/String;Ljava/lang/ClassLoader;Ljava/net/URL;)V
3: StackMap locals: java.net.URL
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 4 0 this Lch/qos/logback/classic/util/ContextInitializer;
0 4 1 filename Ljava/lang/String;
0 4 2 myClassLoader Ljava/lang/ClassLoader;
0 4 3 updateStatus Z
1 4 4 url Ljava/net/URL;
MethodParameters:
Name Flags
filename
myClassLoader
updateStatus
public void autoConfig();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=4, args_size=1
start local 0 0: aload 0
getfield ch.qos.logback.classic.util.ContextInitializer.loggerContext:Lch/qos/logback/classic/LoggerContext;
invokestatic ch.qos.logback.core.util.StatusListenerConfigHelper.installIfAsked:(Lch/qos/logback/core/Context;)V
1: aload 0
iconst_1
invokevirtual ch.qos.logback.classic.util.ContextInitializer.findURLOfDefaultConfigurationFile:(Z)Ljava/net/URL;
astore 1
start local 1 2: aload 1
ifnull 5
3: aload 0
aload 1
invokevirtual ch.qos.logback.classic.util.ContextInitializer.configureByResource:(Ljava/net/URL;)V
4: goto 21
5: StackMap locals: java.net.URL
StackMap stack:
ldc Lch/qos/logback/classic/spi/Configurator;
invokestatic ch.qos.logback.classic.util.EnvUtil.loadFromServiceLoader:(Ljava/lang/Class;)Ljava/lang/Object;
checkcast ch.qos.logback.classic.spi.Configurator
astore 2
start local 2 6: aload 2
ifnull 18
7: aload 2
aload 0
getfield ch.qos.logback.classic.util.ContextInitializer.loggerContext:Lch/qos/logback/classic/LoggerContext;
invokeinterface ch.qos.logback.classic.spi.Configurator.setContext:(Lch/qos/logback/core/Context;)V
8: aload 2
aload 0
getfield ch.qos.logback.classic.util.ContextInitializer.loggerContext:Lch/qos/logback/classic/LoggerContext;
invokeinterface ch.qos.logback.classic.spi.Configurator.configure:(Lch/qos/logback/classic/LoggerContext;)V
9: goto 21
StackMap locals: ch.qos.logback.classic.util.ContextInitializer java.net.URL ch.qos.logback.classic.spi.Configurator
StackMap stack: java.lang.Exception
10: astore 3
start local 3 11: new ch.qos.logback.core.LogbackException
dup
ldc "Failed to initialize Configurator: %s using ServiceLoader"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 2
ifnull 13
aload 2
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
12: invokevirtual java.lang.Class.getCanonicalName:()Ljava/lang/String;
goto 14
StackMap locals: ch.qos.logback.classic.util.ContextInitializer java.net.URL ch.qos.logback.classic.spi.Configurator java.lang.Exception
StackMap stack: new 11 new 11 java.lang.String java.lang.Object[] java.lang.Object[] int
13: ldc "null"
StackMap locals: ch.qos.logback.classic.util.ContextInitializer java.net.URL ch.qos.logback.classic.spi.Configurator java.lang.Exception
StackMap stack: new 11 new 11 java.lang.String java.lang.Object[] java.lang.Object[] int java.lang.String
14: aastore
15: invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
16: aload 3
17: invokespecial ch.qos.logback.core.LogbackException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 3 18: StackMap locals:
StackMap stack:
new ch.qos.logback.classic.BasicConfigurator
dup
invokespecial ch.qos.logback.classic.BasicConfigurator.<init>:()V
astore 3
start local 3 19: aload 3
aload 0
getfield ch.qos.logback.classic.util.ContextInitializer.loggerContext:Lch/qos/logback/classic/LoggerContext;
invokevirtual ch.qos.logback.classic.BasicConfigurator.setContext:(Lch/qos/logback/core/Context;)V
20: aload 3
aload 0
getfield ch.qos.logback.classic.util.ContextInitializer.loggerContext:Lch/qos/logback/classic/LoggerContext;
invokevirtual ch.qos.logback.classic.BasicConfigurator.configure:(Lch/qos/logback/classic/LoggerContext;)V
end local 3 end local 2 21: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 22 0 this Lch/qos/logback/classic/util/ContextInitializer;
2 22 1 url Ljava/net/URL;
6 21 2 c Lch/qos/logback/classic/spi/Configurator;
11 18 3 e Ljava/lang/Exception;
19 21 3 basicConfigurator Lch/qos/logback/classic/BasicConfigurator;
Exception table:
from to target type
7 9 10 Class java.lang.Exception
Exceptions:
throws ch.qos.logback.core.joran.spi.JoranException
private void statusOnResourceSearch(java.lang.String, java.lang.ClassLoader, java.net.URL);
descriptor: (Ljava/lang/String;Ljava/lang/ClassLoader;Ljava/net/URL;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=6, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
getfield ch.qos.logback.classic.util.ContextInitializer.loggerContext:Lch/qos/logback/classic/LoggerContext;
invokevirtual ch.qos.logback.classic.LoggerContext.getStatusManager:()Lch/qos/logback/core/status/StatusManager;
astore 4
start local 4 1: aload 3
ifnonnull 4
2: aload 4
new ch.qos.logback.core.status.InfoStatus
dup
new java.lang.StringBuilder
dup
ldc "Could NOT find resource ["
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
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;
aload 0
getfield ch.qos.logback.classic.util.ContextInitializer.loggerContext:Lch/qos/logback/classic/LoggerContext;
invokespecial ch.qos.logback.core.status.InfoStatus.<init>:(Ljava/lang/String;Ljava/lang/Object;)V
invokeinterface ch.qos.logback.core.status.StatusManager.add:(Lch/qos/logback/core/status/Status;)V
3: goto 6
4: StackMap locals: ch.qos.logback.core.status.StatusManager
StackMap stack:
aload 4
new ch.qos.logback.core.status.InfoStatus
dup
new java.lang.StringBuilder
dup
ldc "Found resource ["
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "] at ["
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 3
invokevirtual java.net.URL.toString:()Ljava/lang/String;
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;
aload 0
getfield ch.qos.logback.classic.util.ContextInitializer.loggerContext:Lch/qos/logback/classic/LoggerContext;
invokespecial ch.qos.logback.core.status.InfoStatus.<init>:(Ljava/lang/String;Ljava/lang/Object;)V
invokeinterface ch.qos.logback.core.status.StatusManager.add:(Lch/qos/logback/core/status/Status;)V
5: aload 0
aload 1
aload 2
invokevirtual ch.qos.logback.classic.util.ContextInitializer.multiplicityWarning:(Ljava/lang/String;Ljava/lang/ClassLoader;)V
6: StackMap locals:
StackMap stack:
return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lch/qos/logback/classic/util/ContextInitializer;
0 7 1 resourceName Ljava/lang/String;
0 7 2 classLoader Ljava/lang/ClassLoader;
0 7 3 url Ljava/net/URL;
1 7 4 sm Lch/qos/logback/core/status/StatusManager;
MethodParameters:
Name Flags
resourceName
classLoader
url
private void multiplicityWarning(java.lang.String, java.lang.ClassLoader);
descriptor: (Ljava/lang/String;Ljava/lang/ClassLoader;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=6, locals=7, args_size=3
start local 0 start local 1 start local 2 0: aconst_null
astore 3
start local 3 1: aload 0
getfield ch.qos.logback.classic.util.ContextInitializer.loggerContext:Lch/qos/logback/classic/LoggerContext;
invokevirtual ch.qos.logback.classic.LoggerContext.getStatusManager:()Lch/qos/logback/core/status/StatusManager;
astore 4
start local 4 2: aload 1
aload 2
invokestatic ch.qos.logback.core.util.Loader.getResources:(Ljava/lang/String;Ljava/lang/ClassLoader;)Ljava/util/Set;
astore 3
3: goto 6
StackMap locals: ch.qos.logback.classic.util.ContextInitializer java.lang.String java.lang.ClassLoader java.util.Set ch.qos.logback.core.status.StatusManager
StackMap stack: java.io.IOException
4: astore 5
start local 5 5: aload 4
new ch.qos.logback.core.status.ErrorStatus
dup
new java.lang.StringBuilder
dup
ldc "Failed to get url list for resource ["
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
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;
aload 0
getfield ch.qos.logback.classic.util.ContextInitializer.loggerContext:Lch/qos/logback/classic/LoggerContext;
aload 5
invokespecial ch.qos.logback.core.status.ErrorStatus.<init>:(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Throwable;)V
invokeinterface ch.qos.logback.core.status.StatusManager.add:(Lch/qos/logback/core/status/Status;)V
end local 5 6: StackMap locals:
StackMap stack:
aload 3
ifnull 12
aload 3
invokeinterface java.util.Set.size:()I
iconst_1
if_icmple 12
7: aload 4
new ch.qos.logback.core.status.WarnStatus
dup
new java.lang.StringBuilder
dup
ldc "Resource ["
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "] occurs multiple times on the classpath."
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 0
getfield ch.qos.logback.classic.util.ContextInitializer.loggerContext:Lch/qos/logback/classic/LoggerContext;
invokespecial ch.qos.logback.core.status.WarnStatus.<init>:(Ljava/lang/String;Ljava/lang/Object;)V
invokeinterface ch.qos.logback.core.status.StatusManager.add:(Lch/qos/logback/core/status/Status;)V
8: aload 3
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 6
goto 11
StackMap locals: ch.qos.logback.classic.util.ContextInitializer java.lang.String java.lang.ClassLoader java.util.Set ch.qos.logback.core.status.StatusManager top java.util.Iterator
StackMap stack:
9: aload 6
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.net.URL
astore 5
start local 5 10: aload 4
new ch.qos.logback.core.status.WarnStatus
dup
new java.lang.StringBuilder
dup
ldc "Resource ["
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "] occurs at ["
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 5
invokevirtual java.net.URL.toString:()Ljava/lang/String;
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;
aload 0
getfield ch.qos.logback.classic.util.ContextInitializer.loggerContext:Lch/qos/logback/classic/LoggerContext;
invokespecial ch.qos.logback.core.status.WarnStatus.<init>:(Ljava/lang/String;Ljava/lang/Object;)V
invokeinterface ch.qos.logback.core.status.StatusManager.add:(Lch/qos/logback/core/status/Status;)V
end local 5 11: StackMap locals:
StackMap stack:
aload 6
invokeinterface java.util.Iterator.hasNext:()Z
ifne 9
12: StackMap locals: ch.qos.logback.classic.util.ContextInitializer java.lang.String java.lang.ClassLoader java.util.Set ch.qos.logback.core.status.StatusManager
StackMap stack:
return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Lch/qos/logback/classic/util/ContextInitializer;
0 13 1 resourceName Ljava/lang/String;
0 13 2 classLoader Ljava/lang/ClassLoader;
1 13 3 urlSet Ljava/util/Set<Ljava/net/URL;>;
2 13 4 sm Lch/qos/logback/core/status/StatusManager;
5 6 5 e Ljava/io/IOException;
10 11 5 url Ljava/net/URL;
Exception table:
from to target type
2 3 4 Class java.io.IOException
MethodParameters:
Name Flags
resourceName
classLoader
}
SourceFile: "ContextInitializer.java"