public final class org.hibernate.internal.util.ConfigHelper
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: org.hibernate.internal.util.ConfigHelper
super_class: java.lang.Object
{
private static final org.hibernate.internal.CoreMessageLogger LOG;
descriptor: Lorg/hibernate/internal/CoreMessageLogger;
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 Lorg/hibernate/internal/util/ConfigHelper;
invokestatic org.hibernate.internal.CoreLogging.messageLogger:(Ljava/lang/Class;)Lorg/hibernate/internal/CoreMessageLogger;
putstatic org.hibernate.internal.util.ConfigHelper.LOG:Lorg/hibernate/internal/CoreMessageLogger;
return
LocalVariableTable:
Start End Slot Name Signature
public static java.net.URL locateConfig(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/net/URL;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new java.net.URL
dup
aload 0
invokespecial java.net.URL.<init>:(Ljava/lang/String;)V
1: areturn
2: StackMap locals:
StackMap stack: java.net.MalformedURLException
pop
3: aload 0
invokestatic org.hibernate.internal.util.ConfigHelper.findAsResource:(Ljava/lang/String;)Ljava/net/URL;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 path Ljava/lang/String;
Exception table:
from to target type
0 1 2 Class java.net.MalformedURLException
MethodParameters:
Name Flags
path final
public static java.net.URL findAsResource(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/net/URL;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=3, args_size=1
start local 0 0: aconst_null
astore 1
start local 1 1: invokestatic java.lang.Thread.currentThread:()Ljava/lang/Thread;
invokevirtual java.lang.Thread.getContextClassLoader:()Ljava/lang/ClassLoader;
astore 2
start local 2 2: aload 2
ifnull 4
3: aload 2
aload 0
invokevirtual java.lang.ClassLoader.getResource:(Ljava/lang/String;)Ljava/net/URL;
astore 1
4: StackMap locals: java.net.URL java.lang.ClassLoader
StackMap stack:
aload 1
ifnull 6
5: aload 1
areturn
6: StackMap locals:
StackMap stack:
ldc Lorg/hibernate/internal/util/ConfigHelper;
invokevirtual java.lang.Class.getClassLoader:()Ljava/lang/ClassLoader;
aload 0
invokevirtual java.lang.ClassLoader.getResource:(Ljava/lang/String;)Ljava/net/URL;
astore 1
7: aload 1
ifnull 9
8: aload 1
areturn
9: StackMap locals:
StackMap stack:
invokestatic java.lang.ClassLoader.getSystemClassLoader:()Ljava/lang/ClassLoader;
aload 0
invokevirtual java.lang.ClassLoader.getResource:(Ljava/lang/String;)Ljava/net/URL;
astore 1
10: aload 1
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 path Ljava/lang/String;
1 11 1 url Ljava/net/URL;
2 11 2 contextClassLoader Ljava/lang/ClassLoader;
MethodParameters:
Name Flags
path final
public static java.io.InputStream getConfigStream(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/io/InputStream;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=3, args_size=1
start local 0 0: aload 0
invokestatic org.hibernate.internal.util.ConfigHelper.locateConfig:(Ljava/lang/String;)Ljava/net/URL;
astore 1
start local 1 1: aload 1
ifnonnull 5
2: getstatic org.hibernate.internal.util.ConfigHelper.LOG:Lorg/hibernate/internal/CoreMessageLogger;
aload 0
invokeinterface org.hibernate.internal.CoreMessageLogger.unableToLocateConfigFile:(Ljava/lang/String;)Ljava/lang/String;
astore 2
start local 2 3: getstatic org.hibernate.internal.util.ConfigHelper.LOG:Lorg/hibernate/internal/CoreMessageLogger;
aload 2
invokeinterface org.hibernate.internal.CoreMessageLogger.error:(Ljava/lang/Object;)V
4: new org.hibernate.HibernateException
dup
aload 2
invokespecial org.hibernate.HibernateException.<init>:(Ljava/lang/String;)V
athrow
end local 2 5: StackMap locals: java.net.URL
StackMap stack:
aload 1
invokevirtual java.net.URL.openStream:()Ljava/io/InputStream;
6: areturn
7: StackMap locals:
StackMap stack: java.io.IOException
astore 2
start local 2 8: new org.hibernate.HibernateException
dup
new java.lang.StringBuilder
dup
ldc "Unable to open config file: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 2
invokespecial org.hibernate.HibernateException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 path Ljava/lang/String;
1 9 1 url Ljava/net/URL;
3 5 2 msg Ljava/lang/String;
8 9 2 e Ljava/io/IOException;
Exception table:
from to target type
5 6 7 Class java.io.IOException
Exceptions:
throws org.hibernate.HibernateException
MethodParameters:
Name Flags
path final
private void <init>();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/hibernate/internal/util/ConfigHelper;
public static java.io.InputStream getResourceAsStream(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/io/InputStream;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=4, args_size=1
start local 0 0: aload 0
ldc "/"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 2
1: aload 0
iconst_1
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
goto 3
2: StackMap locals:
StackMap stack:
aload 0
3: StackMap locals:
StackMap stack: java.lang.String
astore 1
start local 1 4: aconst_null
astore 2
start local 2 5: invokestatic java.lang.Thread.currentThread:()Ljava/lang/Thread;
invokevirtual java.lang.Thread.getContextClassLoader:()Ljava/lang/ClassLoader;
astore 3
start local 3 6: aload 3
ifnull 8
7: aload 3
aload 1
invokevirtual java.lang.ClassLoader.getResourceAsStream:(Ljava/lang/String;)Ljava/io/InputStream;
astore 2
8: StackMap locals: java.lang.String java.io.InputStream java.lang.ClassLoader
StackMap stack:
aload 2
ifnonnull 10
9: ldc Lorg/hibernate/cfg/Environment;
aload 0
invokevirtual java.lang.Class.getResourceAsStream:(Ljava/lang/String;)Ljava/io/InputStream;
astore 2
10: StackMap locals:
StackMap stack:
aload 2
ifnonnull 12
11: ldc Lorg/hibernate/cfg/Environment;
invokevirtual java.lang.Class.getClassLoader:()Ljava/lang/ClassLoader;
aload 1
invokevirtual java.lang.ClassLoader.getResourceAsStream:(Ljava/lang/String;)Ljava/io/InputStream;
astore 2
12: StackMap locals:
StackMap stack:
aload 2
ifnonnull 14
13: new org.hibernate.HibernateException
dup
new java.lang.StringBuilder
dup
aload 0
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc " not found"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial org.hibernate.HibernateException.<init>:(Ljava/lang/String;)V
athrow
14: StackMap locals:
StackMap stack:
aload 2
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 resource Ljava/lang/String;
4 15 1 stripped Ljava/lang/String;
5 15 2 stream Ljava/io/InputStream;
6 15 3 classLoader Ljava/lang/ClassLoader;
MethodParameters:
Name Flags
resource
public static java.io.InputStream getUserResourceAsStream(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/io/InputStream;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=5, args_size=1
start local 0 0: aload 0
ldc "/"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
istore 1
start local 1 1: iload 1
ifeq 2
aload 0
iconst_1
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
goto 3
StackMap locals: int
StackMap stack:
2: aload 0
StackMap locals:
StackMap stack: java.lang.String
3: astore 2
start local 2 4: aconst_null
astore 3
start local 3 5: invokestatic java.lang.Thread.currentThread:()Ljava/lang/Thread;
invokevirtual java.lang.Thread.getContextClassLoader:()Ljava/lang/ClassLoader;
astore 4
start local 4 6: aload 4
ifnull 10
7: aload 4
aload 0
invokevirtual java.lang.ClassLoader.getResourceAsStream:(Ljava/lang/String;)Ljava/io/InputStream;
astore 3
8: aload 3
ifnonnull 10
iload 1
ifeq 10
9: aload 4
aload 2
invokevirtual java.lang.ClassLoader.getResourceAsStream:(Ljava/lang/String;)Ljava/io/InputStream;
astore 3
10: StackMap locals: java.lang.String java.io.InputStream java.lang.ClassLoader
StackMap stack:
aload 3
ifnonnull 12
11: ldc Lorg/hibernate/cfg/Environment;
invokevirtual java.lang.Class.getClassLoader:()Ljava/lang/ClassLoader;
aload 0
invokevirtual java.lang.ClassLoader.getResourceAsStream:(Ljava/lang/String;)Ljava/io/InputStream;
astore 3
12: StackMap locals:
StackMap stack:
aload 3
ifnonnull 14
iload 1
ifeq 14
13: ldc Lorg/hibernate/cfg/Environment;
invokevirtual java.lang.Class.getClassLoader:()Ljava/lang/ClassLoader;
aload 2
invokevirtual java.lang.ClassLoader.getResourceAsStream:(Ljava/lang/String;)Ljava/io/InputStream;
astore 3
14: StackMap locals:
StackMap stack:
aload 3
ifnonnull 16
15: new org.hibernate.HibernateException
dup
new java.lang.StringBuilder
dup
aload 0
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc " not found"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial org.hibernate.HibernateException.<init>:(Ljava/lang/String;)V
athrow
16: StackMap locals:
StackMap stack:
aload 3
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 17 0 resource Ljava/lang/String;
1 17 1 hasLeadingSlash Z
4 17 2 stripped Ljava/lang/String;
5 17 3 stream Ljava/io/InputStream;
6 17 4 classLoader Ljava/lang/ClassLoader;
MethodParameters:
Name Flags
resource
}
SourceFile: "ConfigHelper.java"
RuntimeVisibleAnnotations:
java.lang.Deprecated()