public class org.springframework.validation.beanvalidation.BeanValidationPostProcessor implements org.springframework.beans.factory.config.BeanPostProcessor, org.springframework.beans.factory.InitializingBean
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.springframework.validation.beanvalidation.BeanValidationPostProcessor
super_class: java.lang.Object
{
private javax.validation.Validator validator;
descriptor: Ljavax/validation/Validator;
flags: (0x0002) ACC_PRIVATE
RuntimeVisibleAnnotations:
org.springframework.lang.Nullable()
private boolean afterInitialization;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
iconst_0
putfield org.springframework.validation.beanvalidation.BeanValidationPostProcessor.afterInitialization:Z
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/springframework/validation/beanvalidation/BeanValidationPostProcessor;
public void setValidator(javax.validation.Validator);
descriptor: (Ljavax/validation/Validator;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
putfield org.springframework.validation.beanvalidation.BeanValidationPostProcessor.validator:Ljavax/validation/Validator;
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/springframework/validation/beanvalidation/BeanValidationPostProcessor;
0 2 1 validator Ljavax/validation/Validator;
MethodParameters:
Name Flags
validator
public void setValidatorFactory(javax.validation.ValidatorFactory);
descriptor: (Ljavax/validation/ValidatorFactory;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokeinterface javax.validation.ValidatorFactory.getValidator:()Ljavax/validation/Validator;
putfield org.springframework.validation.beanvalidation.BeanValidationPostProcessor.validator:Ljavax/validation/Validator;
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/springframework/validation/beanvalidation/BeanValidationPostProcessor;
0 2 1 validatorFactory Ljavax/validation/ValidatorFactory;
MethodParameters:
Name Flags
validatorFactory
public void setAfterInitialization(boolean);
descriptor: (Z)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iload 1
putfield org.springframework.validation.beanvalidation.BeanValidationPostProcessor.afterInitialization:Z
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/springframework/validation/beanvalidation/BeanValidationPostProcessor;
0 2 1 afterInitialization Z
MethodParameters:
Name Flags
afterInitialization
public void afterPropertiesSet();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield org.springframework.validation.beanvalidation.BeanValidationPostProcessor.validator:Ljavax/validation/Validator;
ifnonnull 2
1: aload 0
invokestatic javax.validation.Validation.buildDefaultValidatorFactory:()Ljavax/validation/ValidatorFactory;
invokeinterface javax.validation.ValidatorFactory.getValidator:()Ljavax/validation/Validator;
putfield org.springframework.validation.beanvalidation.BeanValidationPostProcessor.validator:Ljavax/validation/Validator;
2: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/springframework/validation/beanvalidation/BeanValidationPostProcessor;
public java.lang.Object postProcessBeforeInitialization(java.lang.Object, java.lang.String);
descriptor: (Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield org.springframework.validation.beanvalidation.BeanValidationPostProcessor.afterInitialization:Z
ifne 2
1: aload 0
aload 1
invokevirtual org.springframework.validation.beanvalidation.BeanValidationPostProcessor.doValidate:(Ljava/lang/Object;)V
2: StackMap locals:
StackMap stack:
aload 1
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/springframework/validation/beanvalidation/BeanValidationPostProcessor;
0 3 1 bean Ljava/lang/Object;
0 3 2 beanName Ljava/lang/String;
Exceptions:
throws org.springframework.beans.BeansException
MethodParameters:
Name Flags
bean
beanName
public java.lang.Object postProcessAfterInitialization(java.lang.Object, java.lang.String);
descriptor: (Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield org.springframework.validation.beanvalidation.BeanValidationPostProcessor.afterInitialization:Z
ifeq 2
1: aload 0
aload 1
invokevirtual org.springframework.validation.beanvalidation.BeanValidationPostProcessor.doValidate:(Ljava/lang/Object;)V
2: StackMap locals:
StackMap stack:
aload 1
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/springframework/validation/beanvalidation/BeanValidationPostProcessor;
0 3 1 bean Ljava/lang/Object;
0 3 2 beanName Ljava/lang/String;
Exceptions:
throws org.springframework.beans.BeansException
MethodParameters:
Name Flags
bean
beanName
protected void doValidate(java.lang.Object);
descriptor: (Ljava/lang/Object;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=7, args_size=2
start local 0 start local 1 0: aload 0
getfield org.springframework.validation.beanvalidation.BeanValidationPostProcessor.validator:Ljavax/validation/Validator;
ifnull 1
iconst_1
goto 2
StackMap locals:
StackMap stack:
1: iconst_0
StackMap locals:
StackMap stack: int
2: ldc "No Validator set"
invokestatic org.springframework.util.Assert.state:(ZLjava/lang/String;)V
3: aload 1
invokestatic org.springframework.aop.framework.AopProxyUtils.getSingletonTarget:(Ljava/lang/Object;)Ljava/lang/Object;
astore 2
start local 2 4: aload 2
ifnonnull 6
5: aload 1
astore 2
6: StackMap locals: java.lang.Object
StackMap stack:
aload 0
getfield org.springframework.validation.beanvalidation.BeanValidationPostProcessor.validator:Ljavax/validation/Validator;
aload 2
iconst_0
anewarray java.lang.Class
invokeinterface javax.validation.Validator.validate:(Ljava/lang/Object;[Ljava/lang/Class;)Ljava/util/Set;
astore 3
start local 3 7: aload 3
invokeinterface java.util.Set.isEmpty:()Z
ifne 17
8: new java.lang.StringBuilder
dup
ldc "Bean state is invalid: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
astore 4
start local 4 9: aload 3
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 5
start local 5 10: goto 15
11: StackMap locals: java.util.Set java.lang.StringBuilder java.util.Iterator
StackMap stack:
aload 5
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast javax.validation.ConstraintViolation
astore 6
start local 6 12: aload 4
aload 6
invokeinterface javax.validation.ConstraintViolation.getPropertyPath:()Ljavax/validation/Path;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc " - "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 6
invokeinterface javax.validation.ConstraintViolation.getMessage:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
13: aload 5
invokeinterface java.util.Iterator.hasNext:()Z
ifeq 15
14: aload 4
ldc "; "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
end local 6 15: StackMap locals:
StackMap stack:
aload 5
invokeinterface java.util.Iterator.hasNext:()Z
ifne 11
end local 5 16: new org.springframework.beans.factory.BeanInitializationException
dup
aload 4
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial org.springframework.beans.factory.BeanInitializationException.<init>:(Ljava/lang/String;)V
athrow
end local 4 17: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 18 0 this Lorg/springframework/validation/beanvalidation/BeanValidationPostProcessor;
0 18 1 bean Ljava/lang/Object;
4 18 2 objectToValidate Ljava/lang/Object;
7 18 3 result Ljava/util/Set<Ljavax/validation/ConstraintViolation<Ljava/lang/Object;>;>;
9 17 4 sb Ljava/lang/StringBuilder;
10 16 5 it Ljava/util/Iterator<Ljavax/validation/ConstraintViolation<Ljava/lang/Object;>;>;
12 15 6 violation Ljavax/validation/ConstraintViolation<Ljava/lang/Object;>;
MethodParameters:
Name Flags
bean
}
SourceFile: "BeanValidationPostProcessor.java"