public class org.hibernate.boot.jaxb.internal.MappingBinder extends org.hibernate.boot.jaxb.internal.AbstractBinder
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.hibernate.boot.jaxb.internal.MappingBinder
super_class: org.hibernate.boot.jaxb.internal.AbstractBinder
{
private static final org.jboss.logging.Logger log;
descriptor: Lorg/jboss/logging/Logger;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private final javax.xml.stream.XMLEventFactory xmlEventFactory;
descriptor: Ljavax/xml/stream/XMLEventFactory;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private javax.xml.bind.JAXBContext hbmJaxbContext;
descriptor: Ljavax/xml/bind/JAXBContext;
flags: (0x0002) ACC_PRIVATE
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc Lorg/hibernate/boot/jaxb/internal/MappingBinder;
invokestatic org.jboss.logging.Logger.getLogger:(Ljava/lang/Class;)Lorg/jboss/logging/Logger;
putstatic org.hibernate.boot.jaxb.internal.MappingBinder.log:Lorg/jboss/logging/Logger;
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>(org.hibernate.boot.registry.classloading.spi.ClassLoaderService);
descriptor: (Lorg/hibernate/boot/registry/classloading/spi/ClassLoaderService;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
iconst_1
invokespecial org.hibernate.boot.jaxb.internal.MappingBinder.<init>:(Lorg/hibernate/boot/registry/classloading/spi/ClassLoaderService;Z)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/hibernate/boot/jaxb/internal/MappingBinder;
0 2 1 classLoaderService Lorg/hibernate/boot/registry/classloading/spi/ClassLoaderService;
MethodParameters:
Name Flags
classLoaderService
public void <init>(org.hibernate.boot.registry.classloading.spi.ClassLoaderService, boolean);
descriptor: (Lorg/hibernate/boot/registry/classloading/spi/ClassLoaderService;Z)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
iload 2
invokespecial org.hibernate.boot.jaxb.internal.AbstractBinder.<init>:(Lorg/hibernate/boot/registry/classloading/spi/ClassLoaderService;Z)V
1: aload 0
invokestatic javax.xml.stream.XMLEventFactory.newInstance:()Ljavax/xml/stream/XMLEventFactory;
putfield org.hibernate.boot.jaxb.internal.MappingBinder.xmlEventFactory:Ljavax/xml/stream/XMLEventFactory;
2: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/hibernate/boot/jaxb/internal/MappingBinder;
0 3 1 classLoaderService Lorg/hibernate/boot/registry/classloading/spi/ClassLoaderService;
0 3 2 validateXml Z
MethodParameters:
Name Flags
classLoaderService
validateXml
protected org.hibernate.boot.jaxb.spi.Binding doBind(javax.xml.stream.XMLEventReader, javax.xml.stream.events.StartElement, org.hibernate.boot.jaxb.Origin);
descriptor: (Ljavax/xml/stream/XMLEventReader;Ljavax/xml/stream/events/StartElement;Lorg/hibernate/boot/jaxb/Origin;)Lorg/hibernate/boot/jaxb/spi/Binding;
flags: (0x0004) ACC_PROTECTED
Code:
stack=5, locals=7, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 2
invokeinterface javax.xml.stream.events.StartElement.getName:()Ljavax/xml/namespace/QName;
invokevirtual javax.xml.namespace.QName.getLocalPart:()Ljava/lang/String;
astore 4
start local 4 1: ldc "hibernate-mapping"
aload 4
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 6
2: getstatic org.hibernate.boot.jaxb.internal.MappingBinder.log:Lorg/jboss/logging/Logger;
ldc "Performing JAXB binding of hbm.xml document : %s"
aload 3
invokevirtual org.hibernate.boot.jaxb.Origin.toString:()Ljava/lang/String;
invokevirtual org.jboss.logging.Logger.debugf:(Ljava/lang/String;Ljava/lang/Object;)V
3: new org.hibernate.boot.jaxb.internal.stax.HbmEventReader
dup
aload 1
aload 0
getfield org.hibernate.boot.jaxb.internal.MappingBinder.xmlEventFactory:Ljavax/xml/stream/XMLEventFactory;
invokespecial org.hibernate.boot.jaxb.internal.stax.HbmEventReader.<init>:(Ljavax/xml/stream/XMLEventReader;Ljavax/xml/stream/XMLEventFactory;)V
astore 5
start local 5 4: aload 0
aload 5
getstatic org.hibernate.boot.xsd.MappingXsdSupport.INSTANCE:Lorg/hibernate/boot/xsd/MappingXsdSupport;
invokevirtual org.hibernate.boot.xsd.MappingXsdSupport.hbmXsd:()Lorg/hibernate/boot/xsd/XsdDescriptor;
invokevirtual org.hibernate.boot.xsd.XsdDescriptor.getSchema:()Ljavax/xml/validation/Schema;
aload 0
invokevirtual org.hibernate.boot.jaxb.internal.MappingBinder.hbmJaxbContext:()Ljavax/xml/bind/JAXBContext;
aload 3
invokevirtual org.hibernate.boot.jaxb.internal.MappingBinder.jaxb:(Ljavax/xml/stream/XMLEventReader;Ljavax/xml/validation/Schema;Ljavax/xml/bind/JAXBContext;Lorg/hibernate/boot/jaxb/Origin;)Ljava/lang/Object;
checkcast org.hibernate.boot.jaxb.hbm.spi.JaxbHbmHibernateMapping
astore 6
start local 6 5: new org.hibernate.boot.jaxb.spi.Binding
dup
aload 6
aload 3
invokespecial org.hibernate.boot.jaxb.spi.Binding.<init>:(Ljava/lang/Object;Lorg/hibernate/boot/jaxb/Origin;)V
areturn
end local 6 end local 5 6: StackMap locals: java.lang.String
StackMap stack:
new org.hibernate.boot.jaxb.internal.stax.JpaOrmXmlEventReader
dup
aload 1
aload 0
getfield org.hibernate.boot.jaxb.internal.MappingBinder.xmlEventFactory:Ljavax/xml/stream/XMLEventFactory;
invokespecial org.hibernate.boot.jaxb.internal.stax.JpaOrmXmlEventReader.<init>:(Ljavax/xml/stream/XMLEventReader;Ljavax/xml/stream/XMLEventFactory;)V
astore 5
start local 5 7: new org.hibernate.boot.jaxb.spi.Binding
dup
aload 0
aload 5
aload 3
invokevirtual org.hibernate.boot.jaxb.internal.MappingBinder.toDom4jDocument:(Ljavax/xml/stream/XMLEventReader;Lorg/hibernate/boot/jaxb/Origin;)Lorg/dom4j/Document;
aload 3
invokespecial org.hibernate.boot.jaxb.spi.Binding.<init>:(Ljava/lang/Object;Lorg/hibernate/boot/jaxb/Origin;)V
8: areturn
end local 5 9: StackMap locals:
StackMap stack: org.hibernate.boot.jaxb.internal.stax.JpaOrmXmlEventReader$BadVersionException
astore 5
start local 5 10: new org.hibernate.boot.UnsupportedOrmXsdVersionException
dup
aload 5
invokevirtual org.hibernate.boot.jaxb.internal.stax.JpaOrmXmlEventReader$BadVersionException.getRequestedVersion:()Ljava/lang/String;
aload 3
invokespecial org.hibernate.boot.UnsupportedOrmXsdVersionException.<init>:(Ljava/lang/String;Lorg/hibernate/boot/jaxb/Origin;)V
athrow
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 11 0 this Lorg/hibernate/boot/jaxb/internal/MappingBinder;
0 11 1 staxEventReader Ljavax/xml/stream/XMLEventReader;
0 11 2 rootElementStartEvent Ljavax/xml/stream/events/StartElement;
0 11 3 origin Lorg/hibernate/boot/jaxb/Origin;
1 11 4 rootElementLocalName Ljava/lang/String;
4 6 5 hbmReader Ljavax/xml/stream/XMLEventReader;
5 6 6 hbmBindings Lorg/hibernate/boot/jaxb/hbm/spi/JaxbHbmHibernateMapping;
7 9 5 reader Ljavax/xml/stream/XMLEventReader;
10 11 5 e Lorg/hibernate/boot/jaxb/internal/stax/JpaOrmXmlEventReader$BadVersionException;
Exception table:
from to target type
6 8 9 Class org.hibernate.boot.jaxb.internal.stax.JpaOrmXmlEventReader$BadVersionException
MethodParameters:
Name Flags
staxEventReader
rootElementStartEvent
origin
private javax.xml.bind.JAXBContext hbmJaxbContext();
descriptor: ()Ljavax/xml/bind/JAXBContext;
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=2, args_size=1
start local 0 0: aload 0
getfield org.hibernate.boot.jaxb.internal.MappingBinder.hbmJaxbContext:Ljavax/xml/bind/JAXBContext;
ifnonnull 5
1: aload 0
iconst_1
anewarray java.lang.Class
dup
iconst_0
ldc Lorg/hibernate/boot/jaxb/hbm/spi/JaxbHbmHibernateMapping;
aastore
invokestatic javax.xml.bind.JAXBContext.newInstance:([Ljava/lang/Class;)Ljavax/xml/bind/JAXBContext;
putfield org.hibernate.boot.jaxb.internal.MappingBinder.hbmJaxbContext:Ljavax/xml/bind/JAXBContext;
2: goto 5
3: StackMap locals:
StackMap stack: javax.xml.bind.JAXBException
astore 1
start local 1 4: new org.hibernate.internal.util.config.ConfigurationException
dup
ldc "Unable to build hbm.xml JAXBContext"
aload 1
invokespecial org.hibernate.internal.util.config.ConfigurationException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 1 5: StackMap locals:
StackMap stack:
aload 0
getfield org.hibernate.boot.jaxb.internal.MappingBinder.hbmJaxbContext:Ljavax/xml/bind/JAXBContext;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/hibernate/boot/jaxb/internal/MappingBinder;
4 5 1 e Ljavax/xml/bind/JAXBException;
Exception table:
from to target type
1 2 3 Class javax.xml.bind.JAXBException
private org.dom4j.Document toDom4jDocument(javax.xml.stream.XMLEventReader, org.hibernate.boot.jaxb.Origin);
descriptor: (Ljavax/xml/stream/XMLEventReader;Lorg/hibernate/boot/jaxb/Origin;)Lorg/dom4j/Document;
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=5, args_size=3
start local 0 start local 1 start local 2 0: new org.hibernate.boot.jaxb.internal.MappingBinder$1
dup
aload 0
invokespecial org.hibernate.boot.jaxb.internal.MappingBinder$1.<init>:(Lorg/hibernate/boot/jaxb/internal/MappingBinder;)V
astore 3
start local 3 1: aload 3
aload 1
invokevirtual org.dom4j.io.STAXEventReader.readDocument:(Ljavax/xml/stream/XMLEventReader;)Lorg/dom4j/Document;
2: areturn
3: StackMap locals: org.hibernate.boot.jaxb.internal.MappingBinder javax.xml.stream.XMLEventReader org.hibernate.boot.jaxb.Origin org.dom4j.io.STAXEventReader
StackMap stack: javax.xml.stream.XMLStreamException
astore 4
start local 4 4: new org.hibernate.boot.MappingException
dup
5: ldc "An error occurred transforming orm.xml document from StAX to dom4j representation "
6: aload 4
7: aload 2
8: invokespecial org.hibernate.boot.MappingException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;Lorg/hibernate/boot/jaxb/Origin;)V
athrow
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lorg/hibernate/boot/jaxb/internal/MappingBinder;
0 9 1 jpaOrmXmlEventReader Ljavax/xml/stream/XMLEventReader;
0 9 2 origin Lorg/hibernate/boot/jaxb/Origin;
1 9 3 staxToDom4jReader Lorg/dom4j/io/STAXEventReader;
4 9 4 e Ljavax/xml/stream/XMLStreamException;
Exception table:
from to target type
1 2 3 Class javax.xml.stream.XMLStreamException
MethodParameters:
Name Flags
jpaOrmXmlEventReader
origin
}
SourceFile: "MappingBinder.java"
NestMembers:
org.hibernate.boot.jaxb.internal.MappingBinder$1
InnerClasses:
org.hibernate.boot.jaxb.internal.MappingBinder$1
public BadVersionException = org.hibernate.boot.jaxb.internal.stax.JpaOrmXmlEventReader$BadVersionException of org.hibernate.boot.jaxb.internal.stax.JpaOrmXmlEventReader