public class org.hibernate.boot.spi.XmlMappingBinderAccess
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.hibernate.boot.spi.XmlMappingBinderAccess
super_class: java.lang.Object
{
private static final org.jboss.logging.Logger LOG;
descriptor: Lorg/jboss/logging/Logger;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private final org.hibernate.boot.registry.classloading.spi.ClassLoaderService classLoaderService;
descriptor: Lorg/hibernate/boot/registry/classloading/spi/ClassLoaderService;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final org.hibernate.boot.jaxb.internal.MappingBinder mappingBinder;
descriptor: Lorg/hibernate/boot/jaxb/internal/MappingBinder;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc Lorg/hibernate/boot/spi/XmlMappingBinderAccess;
invokestatic org.jboss.logging.Logger.getLogger:(Ljava/lang/Class;)Lorg/jboss/logging/Logger;
putstatic org.hibernate.boot.spi.XmlMappingBinderAccess.LOG:Lorg/jboss/logging/Logger;
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>(org.hibernate.service.ServiceRegistry);
descriptor: (Lorg/hibernate/service/ServiceRegistry;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, 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
ldc Lorg/hibernate/boot/registry/classloading/spi/ClassLoaderService;
invokeinterface org.hibernate.service.ServiceRegistry.getService:(Ljava/lang/Class;)Lorg/hibernate/service/Service;
checkcast org.hibernate.boot.registry.classloading.spi.ClassLoaderService
putfield org.hibernate.boot.spi.XmlMappingBinderAccess.classLoaderService:Lorg/hibernate/boot/registry/classloading/spi/ClassLoaderService;
2: aload 0
new org.hibernate.boot.jaxb.internal.MappingBinder
dup
aload 1
ldc Lorg/hibernate/boot/registry/classloading/spi/ClassLoaderService;
invokeinterface org.hibernate.service.ServiceRegistry.getService:(Ljava/lang/Class;)Lorg/hibernate/service/Service;
checkcast org.hibernate.boot.registry.classloading.spi.ClassLoaderService
iconst_1
invokespecial org.hibernate.boot.jaxb.internal.MappingBinder.<init>:(Lorg/hibernate/boot/registry/classloading/spi/ClassLoaderService;Z)V
putfield org.hibernate.boot.spi.XmlMappingBinderAccess.mappingBinder:Lorg/hibernate/boot/jaxb/internal/MappingBinder;
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/hibernate/boot/spi/XmlMappingBinderAccess;
0 4 1 serviceRegistry Lorg/hibernate/service/ServiceRegistry;
MethodParameters:
Name Flags
serviceRegistry
public org.hibernate.boot.jaxb.internal.MappingBinder getMappingBinder();
descriptor: ()Lorg/hibernate/boot/jaxb/internal/MappingBinder;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.hibernate.boot.spi.XmlMappingBinderAccess.mappingBinder:Lorg/hibernate/boot/jaxb/internal/MappingBinder;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/hibernate/boot/spi/XmlMappingBinderAccess;
public org.hibernate.boot.jaxb.spi.Binding bind(java.lang.String);
descriptor: (Ljava/lang/String;)Lorg/hibernate/boot/jaxb/spi/Binding;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=4, args_size=2
start local 0 start local 1 0: getstatic org.hibernate.boot.spi.XmlMappingBinderAccess.LOG:Lorg/jboss/logging/Logger;
ldc "reading mappings from resource : %s"
aload 1
invokevirtual org.jboss.logging.Logger.tracef:(Ljava/lang/String;Ljava/lang/Object;)V
1: new org.hibernate.boot.jaxb.Origin
dup
getstatic org.hibernate.boot.jaxb.SourceType.RESOURCE:Lorg/hibernate/boot/jaxb/SourceType;
aload 1
invokespecial org.hibernate.boot.jaxb.Origin.<init>:(Lorg/hibernate/boot/jaxb/SourceType;Ljava/lang/String;)V
astore 2
start local 2 2: aload 0
getfield org.hibernate.boot.spi.XmlMappingBinderAccess.classLoaderService:Lorg/hibernate/boot/registry/classloading/spi/ClassLoaderService;
aload 1
invokeinterface org.hibernate.boot.registry.classloading.spi.ClassLoaderService.locateResource:(Ljava/lang/String;)Ljava/net/URL;
astore 3
start local 3 3: aload 3
ifnonnull 5
4: new org.hibernate.boot.MappingNotFoundException
dup
aload 2
invokespecial org.hibernate.boot.MappingNotFoundException.<init>:(Lorg/hibernate/boot/jaxb/Origin;)V
athrow
5: StackMap locals: org.hibernate.boot.jaxb.Origin java.net.URL
StackMap stack:
new org.hibernate.boot.jaxb.internal.UrlXmlSource
dup
aload 2
aload 3
invokespecial org.hibernate.boot.jaxb.internal.UrlXmlSource.<init>:(Lorg/hibernate/boot/jaxb/Origin;Ljava/net/URL;)V
aload 0
invokevirtual org.hibernate.boot.spi.XmlMappingBinderAccess.getMappingBinder:()Lorg/hibernate/boot/jaxb/internal/MappingBinder;
invokevirtual org.hibernate.boot.jaxb.internal.UrlXmlSource.doBind:(Lorg/hibernate/boot/jaxb/spi/Binder;)Lorg/hibernate/boot/jaxb/spi/Binding;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/hibernate/boot/spi/XmlMappingBinderAccess;
0 6 1 resource Ljava/lang/String;
2 6 2 origin Lorg/hibernate/boot/jaxb/Origin;
3 6 3 url Ljava/net/URL;
MethodParameters:
Name Flags
resource
public org.hibernate.boot.jaxb.spi.Binding bind(java.io.File);
descriptor: (Ljava/io/File;)Lorg/hibernate/boot/jaxb/spi/Binding;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: new org.hibernate.boot.jaxb.Origin
dup
getstatic org.hibernate.boot.jaxb.SourceType.FILE:Lorg/hibernate/boot/jaxb/SourceType;
aload 1
invokevirtual java.io.File.getPath:()Ljava/lang/String;
invokespecial org.hibernate.boot.jaxb.Origin.<init>:(Lorg/hibernate/boot/jaxb/SourceType;Ljava/lang/String;)V
astore 2
start local 2 1: getstatic org.hibernate.boot.spi.XmlMappingBinderAccess.LOG:Lorg/jboss/logging/Logger;
ldc "reading mappings from file : %s"
aload 2
invokevirtual org.hibernate.boot.jaxb.Origin.getName:()Ljava/lang/String;
invokevirtual org.jboss.logging.Logger.tracef:(Ljava/lang/String;Ljava/lang/Object;)V
2: aload 1
invokevirtual java.io.File.exists:()Z
ifne 4
3: new org.hibernate.boot.MappingNotFoundException
dup
aload 2
invokespecial org.hibernate.boot.MappingNotFoundException.<init>:(Lorg/hibernate/boot/jaxb/Origin;)V
athrow
4: StackMap locals: org.hibernate.boot.jaxb.Origin
StackMap stack:
new org.hibernate.boot.jaxb.internal.FileXmlSource
dup
aload 2
aload 1
invokespecial org.hibernate.boot.jaxb.internal.FileXmlSource.<init>:(Lorg/hibernate/boot/jaxb/Origin;Ljava/io/File;)V
aload 0
invokevirtual org.hibernate.boot.spi.XmlMappingBinderAccess.getMappingBinder:()Lorg/hibernate/boot/jaxb/internal/MappingBinder;
invokevirtual org.hibernate.boot.jaxb.internal.FileXmlSource.doBind:(Lorg/hibernate/boot/jaxb/spi/Binder;)Lorg/hibernate/boot/jaxb/spi/Binding;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/hibernate/boot/spi/XmlMappingBinderAccess;
0 5 1 file Ljava/io/File;
1 5 2 origin Lorg/hibernate/boot/jaxb/Origin;
MethodParameters:
Name Flags
file
public org.hibernate.boot.jaxb.spi.Binding bind(org.hibernate.boot.archive.spi.InputStreamAccess);
descriptor: (Lorg/hibernate/boot/archive/spi/InputStreamAccess;)Lorg/hibernate/boot/jaxb/spi/Binding;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=6, args_size=2
start local 0 start local 1 0: getstatic org.hibernate.boot.spi.XmlMappingBinderAccess.LOG:Lorg/jboss/logging/Logger;
ldc "reading mappings from InputStreamAccess : %s"
aload 1
invokeinterface org.hibernate.boot.archive.spi.InputStreamAccess.getStreamName:()Ljava/lang/String;
invokevirtual org.jboss.logging.Logger.tracef:(Ljava/lang/String;Ljava/lang/Object;)V
1: new org.hibernate.boot.jaxb.Origin
dup
getstatic org.hibernate.boot.jaxb.SourceType.INPUT_STREAM:Lorg/hibernate/boot/jaxb/SourceType;
aload 1
invokeinterface org.hibernate.boot.archive.spi.InputStreamAccess.getStreamName:()Ljava/lang/String;
invokespecial org.hibernate.boot.jaxb.Origin.<init>:(Lorg/hibernate/boot/jaxb/SourceType;Ljava/lang/String;)V
astore 2
start local 2 2: aload 1
invokeinterface org.hibernate.boot.archive.spi.InputStreamAccess.accessInputStream:()Ljava/io/InputStream;
astore 3
start local 3 3: new org.hibernate.boot.jaxb.internal.InputStreamXmlSource
dup
aload 2
aload 3
iconst_0
invokespecial org.hibernate.boot.jaxb.internal.InputStreamXmlSource.<init>:(Lorg/hibernate/boot/jaxb/Origin;Ljava/io/InputStream;Z)V
aload 0
getfield org.hibernate.boot.spi.XmlMappingBinderAccess.mappingBinder:Lorg/hibernate/boot/jaxb/internal/MappingBinder;
invokevirtual org.hibernate.boot.jaxb.internal.InputStreamXmlSource.doBind:(Lorg/hibernate/boot/jaxb/spi/Binder;)Lorg/hibernate/boot/jaxb/spi/Binding;
astore 5
4: aload 3
invokevirtual java.io.InputStream.close:()V
5: goto 8
6: StackMap locals: org.hibernate.boot.spi.XmlMappingBinderAccess org.hibernate.boot.archive.spi.InputStreamAccess org.hibernate.boot.jaxb.Origin java.io.InputStream top org.hibernate.boot.jaxb.spi.Binding
StackMap stack: java.io.IOException
pop
7: getstatic org.hibernate.boot.spi.XmlMappingBinderAccess.LOG:Lorg/jboss/logging/Logger;
new java.lang.StringBuilder
dup
ldc "Unable to close InputStream obtained from InputStreamAccess : "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokeinterface org.hibernate.boot.archive.spi.InputStreamAccess.getStreamName:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
iconst_0
anewarray java.lang.Object
invokevirtual org.jboss.logging.Logger.debugf:(Ljava/lang/String;[Ljava/lang/Object;)V
8: StackMap locals:
StackMap stack:
aload 5
areturn
9: StackMap locals: org.hibernate.boot.spi.XmlMappingBinderAccess org.hibernate.boot.archive.spi.InputStreamAccess org.hibernate.boot.jaxb.Origin java.io.InputStream
StackMap stack: java.lang.Throwable
astore 4
10: aload 3
invokevirtual java.io.InputStream.close:()V
11: goto 14
12: StackMap locals: org.hibernate.boot.spi.XmlMappingBinderAccess org.hibernate.boot.archive.spi.InputStreamAccess org.hibernate.boot.jaxb.Origin java.io.InputStream java.lang.Throwable
StackMap stack: java.io.IOException
pop
13: getstatic org.hibernate.boot.spi.XmlMappingBinderAccess.LOG:Lorg/jboss/logging/Logger;
new java.lang.StringBuilder
dup
ldc "Unable to close InputStream obtained from InputStreamAccess : "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokeinterface org.hibernate.boot.archive.spi.InputStreamAccess.getStreamName:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
iconst_0
anewarray java.lang.Object
invokevirtual org.jboss.logging.Logger.debugf:(Ljava/lang/String;[Ljava/lang/Object;)V
14: StackMap locals:
StackMap stack:
aload 4
athrow
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 this Lorg/hibernate/boot/spi/XmlMappingBinderAccess;
0 15 1 xmlInputStreamAccess Lorg/hibernate/boot/archive/spi/InputStreamAccess;
2 15 2 origin Lorg/hibernate/boot/jaxb/Origin;
3 15 3 xmlInputStream Ljava/io/InputStream;
Exception table:
from to target type
4 5 6 Class java.io.IOException
3 4 9 any
10 11 12 Class java.io.IOException
MethodParameters:
Name Flags
xmlInputStreamAccess
public org.hibernate.boot.jaxb.spi.Binding bind(java.io.InputStream);
descriptor: (Ljava/io/InputStream;)Lorg/hibernate/boot/jaxb/spi/Binding;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=3, args_size=2
start local 0 start local 1 0: getstatic org.hibernate.boot.spi.XmlMappingBinderAccess.LOG:Lorg/jboss/logging/Logger;
ldc "reading mappings from InputStream"
iconst_0
anewarray java.lang.Object
invokevirtual org.jboss.logging.Logger.tracef:(Ljava/lang/String;[Ljava/lang/Object;)V
1: new org.hibernate.boot.jaxb.Origin
dup
getstatic org.hibernate.boot.jaxb.SourceType.INPUT_STREAM:Lorg/hibernate/boot/jaxb/SourceType;
aconst_null
invokespecial org.hibernate.boot.jaxb.Origin.<init>:(Lorg/hibernate/boot/jaxb/SourceType;Ljava/lang/String;)V
astore 2
start local 2 2: new org.hibernate.boot.jaxb.internal.InputStreamXmlSource
dup
aload 2
aload 1
iconst_0
invokespecial org.hibernate.boot.jaxb.internal.InputStreamXmlSource.<init>:(Lorg/hibernate/boot/jaxb/Origin;Ljava/io/InputStream;Z)V
aload 0
invokevirtual org.hibernate.boot.spi.XmlMappingBinderAccess.getMappingBinder:()Lorg/hibernate/boot/jaxb/internal/MappingBinder;
invokevirtual org.hibernate.boot.jaxb.internal.InputStreamXmlSource.doBind:(Lorg/hibernate/boot/jaxb/spi/Binder;)Lorg/hibernate/boot/jaxb/spi/Binding;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/hibernate/boot/spi/XmlMappingBinderAccess;
0 3 1 xmlInputStream Ljava/io/InputStream;
2 3 2 origin Lorg/hibernate/boot/jaxb/Origin;
MethodParameters:
Name Flags
xmlInputStream
public org.hibernate.boot.jaxb.spi.Binding bind(java.net.URL);
descriptor: (Ljava/net/URL;)Lorg/hibernate/boot/jaxb/spi/Binding;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=4, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual java.net.URL.toExternalForm:()Ljava/lang/String;
astore 2
start local 2 1: getstatic org.hibernate.boot.spi.XmlMappingBinderAccess.LOG:Lorg/jboss/logging/Logger;
ldc "Reading mapping document from URL : %s"
aload 2
invokevirtual org.jboss.logging.Logger.debugf:(Ljava/lang/String;Ljava/lang/Object;)V
2: new org.hibernate.boot.jaxb.Origin
dup
getstatic org.hibernate.boot.jaxb.SourceType.URL:Lorg/hibernate/boot/jaxb/SourceType;
aload 2
invokespecial org.hibernate.boot.jaxb.Origin.<init>:(Lorg/hibernate/boot/jaxb/SourceType;Ljava/lang/String;)V
astore 3
start local 3 3: new org.hibernate.boot.jaxb.internal.UrlXmlSource
dup
aload 3
aload 1
invokespecial org.hibernate.boot.jaxb.internal.UrlXmlSource.<init>:(Lorg/hibernate/boot/jaxb/Origin;Ljava/net/URL;)V
aload 0
invokevirtual org.hibernate.boot.spi.XmlMappingBinderAccess.getMappingBinder:()Lorg/hibernate/boot/jaxb/internal/MappingBinder;
invokevirtual org.hibernate.boot.jaxb.internal.UrlXmlSource.doBind:(Lorg/hibernate/boot/jaxb/spi/Binder;)Lorg/hibernate/boot/jaxb/spi/Binding;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/hibernate/boot/spi/XmlMappingBinderAccess;
0 4 1 url Ljava/net/URL;
1 4 2 urlExternalForm Ljava/lang/String;
3 4 3 origin Lorg/hibernate/boot/jaxb/Origin;
MethodParameters:
Name Flags
url
}
SourceFile: "XmlMappingBinderAccess.java"