public class org.hibernate.cfg.beanvalidation.BeanValidationIntegrator implements org.hibernate.integrator.spi.Integrator
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.hibernate.cfg.beanvalidation.BeanValidationIntegrator
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
public static final java.lang.String APPLY_CONSTRAINTS;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "hibernate.validator.apply_to_ddl"
public static final java.lang.String BV_CHECK_CLASS;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "javax.validation.Validation"
public static final java.lang.String MODE_PROPERTY;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "javax.persistence.validation.mode"
private static final java.lang.String ACTIVATOR_CLASS_NAME;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "org.hibernate.cfg.beanvalidation.TypeSafeActivator"
private static final java.lang.String VALIDATE_SUPPLIED_FACTORY_METHOD_NAME;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "validateSuppliedFactory"
private static final java.lang.String ACTIVATE_METHOD_NAME;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "activate"
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: ldc Lorg/hibernate/internal/CoreMessageLogger;
1: ldc Lorg/hibernate/cfg/beanvalidation/BeanValidationIntegrator;
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
2: invokestatic org.jboss.logging.Logger.getMessageLogger:(Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/Object;
checkcast org.hibernate.internal.CoreMessageLogger
putstatic org.hibernate.cfg.beanvalidation.BeanValidationIntegrator.LOG:Lorg/hibernate/internal/CoreMessageLogger;
3: return
LocalVariableTable:
Start End Slot Name Signature
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/hibernate/cfg/beanvalidation/BeanValidationIntegrator;
public static void validateFactory(java.lang.Object);
descriptor: (Ljava/lang/Object;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=6, locals=4, args_size=1
start local 0 0: ldc Lorg/hibernate/cfg/beanvalidation/BeanValidationIntegrator;
invokevirtual java.lang.Class.getClassLoader:()Ljava/lang/ClassLoader;
ldc "org.hibernate.cfg.beanvalidation.TypeSafeActivator"
invokevirtual java.lang.ClassLoader.loadClass:(Ljava/lang/String;)Ljava/lang/Class;
astore 1
start local 1 1: aload 1
ldc "validateSuppliedFactory"
iconst_1
anewarray java.lang.Class
dup
iconst_0
ldc Ljava/lang/Object;
aastore
invokevirtual java.lang.Class.getMethod:(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
astore 2
start local 2 2: aload 2
aconst_null
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 0
aastore
invokevirtual java.lang.reflect.Method.invoke:(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
pop
3: goto 18
4: StackMap locals: java.lang.Object java.lang.Class java.lang.reflect.Method
StackMap stack: java.lang.reflect.InvocationTargetException
astore 3
start local 3 5: aload 3
invokevirtual java.lang.reflect.InvocationTargetException.getTargetException:()Ljava/lang/Throwable;
instanceof org.hibernate.HibernateException
ifeq 7
6: aload 3
invokevirtual java.lang.reflect.InvocationTargetException.getTargetException:()Ljava/lang/Throwable;
checkcast org.hibernate.HibernateException
athrow
7: StackMap locals: java.lang.reflect.InvocationTargetException
StackMap stack:
new org.hibernate.HibernateException
dup
ldc "Unable to check validity of passed ValidatorFactory"
aload 3
invokespecial org.hibernate.HibernateException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 3 8: StackMap locals: java.lang.Object java.lang.Class java.lang.reflect.Method
StackMap stack: java.lang.IllegalAccessException
astore 3
start local 3 9: new org.hibernate.HibernateException
dup
ldc "Unable to check validity of passed ValidatorFactory"
aload 3
invokespecial org.hibernate.HibernateException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 3 end local 2 10: StackMap locals: java.lang.Object java.lang.Class
StackMap stack: org.hibernate.HibernateException
astore 2
start local 2 11: aload 2
athrow
end local 2 12: StackMap locals:
StackMap stack: java.lang.Exception
astore 2
start local 2 13: new org.hibernate.HibernateException
dup
ldc "Could not locate method needed for ValidatorFactory validation"
aload 2
invokespecial org.hibernate.HibernateException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 2 end local 1 14: StackMap locals: java.lang.Object
StackMap stack: org.hibernate.HibernateException
astore 1
start local 1 15: aload 1
athrow
end local 1 16: StackMap locals:
StackMap stack: java.lang.Exception
astore 1
start local 1 17: new org.hibernate.HibernateException
dup
ldc "Could not locate TypeSafeActivator class"
aload 1
invokespecial org.hibernate.HibernateException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 1 18: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 19 0 object Ljava/lang/Object;
1 14 1 activatorClass Ljava/lang/Class;
2 10 2 validateMethod Ljava/lang/reflect/Method;
5 8 3 e Ljava/lang/reflect/InvocationTargetException;
9 10 3 e Ljava/lang/IllegalAccessException;
11 12 2 e Lorg/hibernate/HibernateException;
13 14 2 e Ljava/lang/Exception;
15 16 1 e Lorg/hibernate/HibernateException;
17 18 1 e Ljava/lang/Exception;
Exception table:
from to target type
2 3 4 Class java.lang.reflect.InvocationTargetException
2 3 8 Class java.lang.IllegalAccessException
1 10 10 Class org.hibernate.HibernateException
1 10 12 Class java.lang.Exception
0 14 14 Class org.hibernate.HibernateException
0 14 16 Class java.lang.Exception
MethodParameters:
Name Flags
object
public void integrate(org.hibernate.boot.Metadata, org.hibernate.engine.spi.SessionFactoryImplementor, org.hibernate.service.spi.SessionFactoryServiceRegistry);
descriptor: (Lorg/hibernate/boot/Metadata;Lorg/hibernate/engine/spi/SessionFactoryImplementor;Lorg/hibernate/service/spi/SessionFactoryServiceRegistry;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=11, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 3
ldc Lorg/hibernate/engine/config/spi/ConfigurationService;
invokeinterface org.hibernate.service.spi.SessionFactoryServiceRegistry.getService:(Ljava/lang/Class;)Lorg/hibernate/service/Service;
checkcast org.hibernate.engine.config.spi.ConfigurationService
astore 4
start local 4 1: aload 4
invokeinterface org.hibernate.engine.config.spi.ConfigurationService.getSettings:()Ljava/util/Map;
ldc "javax.persistence.validation.mode"
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
invokestatic org.hibernate.cfg.beanvalidation.ValidationMode.getModes:(Ljava/lang/Object;)Ljava/util/Set;
astore 5
start local 5 2: aload 5
invokeinterface java.util.Set.size:()I
iconst_1
if_icmple 4
3: getstatic org.hibernate.cfg.beanvalidation.BeanValidationIntegrator.LOG:Lorg/hibernate/internal/CoreMessageLogger;
aload 5
invokestatic org.hibernate.cfg.beanvalidation.ValidationMode.loggable:(Ljava/util/Set;)Ljava/lang/String;
invokeinterface org.hibernate.internal.CoreMessageLogger.multipleValidationModes:(Ljava/lang/String;)V
4: StackMap locals: org.hibernate.engine.config.spi.ConfigurationService java.util.Set
StackMap stack:
aload 5
invokeinterface java.util.Set.size:()I
iconst_1
if_icmpne 6
aload 5
getstatic org.hibernate.cfg.beanvalidation.ValidationMode.NONE:Lorg/hibernate/cfg/beanvalidation/ValidationMode;
invokeinterface java.util.Set.contains:(Ljava/lang/Object;)Z
ifeq 6
5: return
6: StackMap locals:
StackMap stack:
aload 3
ldc Lorg/hibernate/boot/registry/classloading/spi/ClassLoaderService;
invokeinterface org.hibernate.service.spi.SessionFactoryServiceRegistry.getService:(Ljava/lang/Class;)Lorg/hibernate/service/Service;
checkcast org.hibernate.boot.registry.classloading.spi.ClassLoaderService
astore 6
start local 6 7: aload 0
aload 6
invokevirtual org.hibernate.cfg.beanvalidation.BeanValidationIntegrator.isBeanValidationApiAvailable:(Lorg/hibernate/boot/registry/classloading/spi/ClassLoaderService;)Z
ifeq 21
8: aload 0
aload 6
invokevirtual org.hibernate.cfg.beanvalidation.BeanValidationIntegrator.loadTypeSafeActivatorClass:(Lorg/hibernate/boot/registry/classloading/spi/ClassLoaderService;)Ljava/lang/Class;
astore 7
start local 7 9: aload 7
ldc "activate"
iconst_1
anewarray java.lang.Class
dup
iconst_0
ldc Lorg/hibernate/cfg/beanvalidation/ActivationContext;
aastore
invokevirtual java.lang.Class.getMethod:(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
astore 8
start local 8 10: new org.hibernate.cfg.beanvalidation.BeanValidationIntegrator$1
dup
aload 0
aload 5
aload 1
aload 2
aload 3
invokespecial org.hibernate.cfg.beanvalidation.BeanValidationIntegrator$1.<init>:(Lorg/hibernate/cfg/beanvalidation/BeanValidationIntegrator;Ljava/util/Set;Lorg/hibernate/boot/Metadata;Lorg/hibernate/engine/spi/SessionFactoryImplementor;Lorg/hibernate/service/spi/SessionFactoryServiceRegistry;)V
astore 9
start local 9 11: aload 8
aconst_null
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 9
aastore
invokevirtual java.lang.reflect.Method.invoke:(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
pop
12: goto 22
13: StackMap locals: org.hibernate.cfg.beanvalidation.BeanValidationIntegrator org.hibernate.boot.Metadata org.hibernate.engine.spi.SessionFactoryImplementor org.hibernate.service.spi.SessionFactoryServiceRegistry org.hibernate.engine.config.spi.ConfigurationService java.util.Set org.hibernate.boot.registry.classloading.spi.ClassLoaderService java.lang.Class java.lang.reflect.Method org.hibernate.cfg.beanvalidation.ActivationContext
StackMap stack: java.lang.reflect.InvocationTargetException
astore 10
start local 10 14: ldc Lorg/hibernate/HibernateException;
aload 10
invokevirtual java.lang.reflect.InvocationTargetException.getTargetException:()Ljava/lang/Throwable;
invokevirtual java.lang.Class.isInstance:(Ljava/lang/Object;)Z
ifeq 16
15: aload 10
invokevirtual java.lang.reflect.InvocationTargetException.getTargetException:()Ljava/lang/Throwable;
checkcast org.hibernate.HibernateException
athrow
16: StackMap locals: java.lang.reflect.InvocationTargetException
StackMap stack:
new org.hibernate.cfg.beanvalidation.IntegrationException
dup
ldc "Error activating Bean Validation integration"
aload 10
invokevirtual java.lang.reflect.InvocationTargetException.getTargetException:()Ljava/lang/Throwable;
invokespecial org.hibernate.cfg.beanvalidation.IntegrationException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 10 17: StackMap locals: org.hibernate.cfg.beanvalidation.BeanValidationIntegrator org.hibernate.boot.Metadata org.hibernate.engine.spi.SessionFactoryImplementor org.hibernate.service.spi.SessionFactoryServiceRegistry org.hibernate.engine.config.spi.ConfigurationService java.util.Set org.hibernate.boot.registry.classloading.spi.ClassLoaderService java.lang.Class java.lang.reflect.Method org.hibernate.cfg.beanvalidation.ActivationContext
StackMap stack: java.lang.Exception
astore 10
start local 10 18: new org.hibernate.cfg.beanvalidation.IntegrationException
dup
ldc "Error activating Bean Validation integration"
aload 10
invokespecial org.hibernate.cfg.beanvalidation.IntegrationException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 10 end local 9 end local 8 end local 7 19: StackMap locals: org.hibernate.cfg.beanvalidation.BeanValidationIntegrator org.hibernate.boot.Metadata org.hibernate.engine.spi.SessionFactoryImplementor org.hibernate.service.spi.SessionFactoryServiceRegistry org.hibernate.engine.config.spi.ConfigurationService java.util.Set org.hibernate.boot.registry.classloading.spi.ClassLoaderService
StackMap stack: java.lang.NoSuchMethodException
astore 7
start local 7 20: new org.hibernate.HibernateException
dup
ldc "Unable to locate TypeSafeActivator#activate method"
aload 7
invokespecial org.hibernate.HibernateException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 7 21: StackMap locals:
StackMap stack:
aload 0
aload 5
invokevirtual org.hibernate.cfg.beanvalidation.BeanValidationIntegrator.validateMissingBeanValidationApi:(Ljava/util/Set;)V
22: StackMap locals:
StackMap stack:
return
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 23 0 this Lorg/hibernate/cfg/beanvalidation/BeanValidationIntegrator;
0 23 1 metadata Lorg/hibernate/boot/Metadata;
0 23 2 sessionFactory Lorg/hibernate/engine/spi/SessionFactoryImplementor;
0 23 3 serviceRegistry Lorg/hibernate/service/spi/SessionFactoryServiceRegistry;
1 23 4 cfgService Lorg/hibernate/engine/config/spi/ConfigurationService;
2 23 5 modes Ljava/util/Set<Lorg/hibernate/cfg/beanvalidation/ValidationMode;>;
7 23 6 classLoaderService Lorg/hibernate/boot/registry/classloading/spi/ClassLoaderService;
9 19 7 typeSafeActivatorClass Ljava/lang/Class;
10 19 8 activateMethod Ljava/lang/reflect/Method;
11 19 9 activationContext Lorg/hibernate/cfg/beanvalidation/ActivationContext;
14 17 10 e Ljava/lang/reflect/InvocationTargetException;
18 19 10 e Ljava/lang/Exception;
20 21 7 e Ljava/lang/NoSuchMethodException;
Exception table:
from to target type
11 12 13 Class java.lang.reflect.InvocationTargetException
11 12 17 Class java.lang.Exception
8 19 19 Class java.lang.NoSuchMethodException
MethodParameters:
Name Flags
metadata final
sessionFactory final
serviceRegistry final
private boolean isBeanValidationApiAvailable(org.hibernate.boot.registry.classloading.spi.ClassLoaderService);
descriptor: (Lorg/hibernate/boot/registry/classloading/spi/ClassLoaderService;)Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
ldc "javax.validation.Validation"
invokeinterface org.hibernate.boot.registry.classloading.spi.ClassLoaderService.classForName:(Ljava/lang/String;)Ljava/lang/Class;
pop
1: iconst_1
ireturn
2: StackMap locals:
StackMap stack: java.lang.Exception
pop
3: iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/hibernate/cfg/beanvalidation/BeanValidationIntegrator;
0 4 1 classLoaderService Lorg/hibernate/boot/registry/classloading/spi/ClassLoaderService;
Exception table:
from to target type
0 1 2 Class java.lang.Exception
MethodParameters:
Name Flags
classLoaderService
private void validateMissingBeanValidationApi(java.util.Set<org.hibernate.cfg.beanvalidation.ValidationMode>);
descriptor: (Ljava/util/Set;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 1
getstatic org.hibernate.cfg.beanvalidation.ValidationMode.CALLBACK:Lorg/hibernate/cfg/beanvalidation/ValidationMode;
invokeinterface java.util.Set.contains:(Ljava/lang/Object;)Z
ifeq 2
1: new org.hibernate.cfg.beanvalidation.IntegrationException
dup
ldc "Bean Validation API was not available, but 'callback' validation was requested"
invokespecial org.hibernate.cfg.beanvalidation.IntegrationException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 1
getstatic org.hibernate.cfg.beanvalidation.ValidationMode.DDL:Lorg/hibernate/cfg/beanvalidation/ValidationMode;
invokeinterface java.util.Set.contains:(Ljava/lang/Object;)Z
ifeq 4
3: new org.hibernate.cfg.beanvalidation.IntegrationException
dup
ldc "Bean Validation API was not available, but 'ddl' validation was requested"
invokespecial org.hibernate.cfg.beanvalidation.IntegrationException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/hibernate/cfg/beanvalidation/BeanValidationIntegrator;
0 5 1 modes Ljava/util/Set<Lorg/hibernate/cfg/beanvalidation/ValidationMode;>;
Signature: (Ljava/util/Set<Lorg/hibernate/cfg/beanvalidation/ValidationMode;>;)V
MethodParameters:
Name Flags
modes
private java.lang.Class loadTypeSafeActivatorClass(org.hibernate.boot.registry.classloading.spi.ClassLoaderService);
descriptor: (Lorg/hibernate/boot/registry/classloading/spi/ClassLoaderService;)Ljava/lang/Class;
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: aload 1
ldc "org.hibernate.cfg.beanvalidation.TypeSafeActivator"
invokeinterface org.hibernate.boot.registry.classloading.spi.ClassLoaderService.classForName:(Ljava/lang/String;)Ljava/lang/Class;
1: areturn
2: StackMap locals:
StackMap stack: java.lang.Exception
astore 2
start local 2 3: new org.hibernate.HibernateException
dup
ldc "Unable to load TypeSafeActivator class"
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 4 0 this Lorg/hibernate/cfg/beanvalidation/BeanValidationIntegrator;
0 4 1 classLoaderService Lorg/hibernate/boot/registry/classloading/spi/ClassLoaderService;
3 4 2 e Ljava/lang/Exception;
Exception table:
from to target type
0 1 2 Class java.lang.Exception
MethodParameters:
Name Flags
classLoaderService
public void disintegrate(org.hibernate.engine.spi.SessionFactoryImplementor, org.hibernate.service.spi.SessionFactoryServiceRegistry);
descriptor: (Lorg/hibernate/engine/spi/SessionFactoryImplementor;Lorg/hibernate/service/spi/SessionFactoryServiceRegistry;)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 Lorg/hibernate/cfg/beanvalidation/BeanValidationIntegrator;
0 1 1 sessionFactory Lorg/hibernate/engine/spi/SessionFactoryImplementor;
0 1 2 serviceRegistry Lorg/hibernate/service/spi/SessionFactoryServiceRegistry;
MethodParameters:
Name Flags
sessionFactory
serviceRegistry
}
SourceFile: "BeanValidationIntegrator.java"
NestMembers:
org.hibernate.cfg.beanvalidation.BeanValidationIntegrator$1
InnerClasses:
org.hibernate.cfg.beanvalidation.BeanValidationIntegrator$1