public class ValidatorAdapter extends ObjectSE implements org.springframework.validation.SmartValidator, org.springframework.context.ApplicationContextAware, org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.DisposableBean
Validator
に呼び出しを委譲する Validator
実装。この Validator
は、Spring の SmartValidator
インターフェースを実装しますが、JSR-303 javax.validator.Validator
インターフェースは実装しません。修飾子と型 | メソッドと説明 |
---|---|
void | afterPropertiesSet() |
void | destroy() |
static org.springframework.validation.Validator | get(org.springframework.context.ApplicationContext applicationContext, org.springframework.validation.Validator validator) Validator インターフェースのみを実装する Validator を返し、必要に応じてラップします。 |
org.springframework.validation.Validator | getTarget() |
void | setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
boolean | supports(ClassSE<?> clazz) |
void | validate(ObjectSE target, org.springframework.validation.Errors errors) |
void | validate(ObjectSE target, org.springframework.validation.Errors errors, ObjectSE... validationHints) |
cloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSE
public final org.springframework.validation.Validator getTarget()
public boolean supports(ClassSE<?> clazz)
org.springframework.validation.Validator
の supports
public void validate(ObjectSE target, org.springframework.validation.Errors errors)
org.springframework.validation.Validator
の validate
public void validate(ObjectSE target, org.springframework.validation.Errors errors, ObjectSE... validationHints)
org.springframework.validation.SmartValidator
の validate
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
org.springframework.context.ApplicationContextAware
の setApplicationContext
org.springframework.beans.BeansException
public void afterPropertiesSet() throws ExceptionSE
org.springframework.beans.factory.InitializingBean
の afterPropertiesSet
ExceptionSE
public void destroy() throws ExceptionSE
org.springframework.beans.factory.DisposableBean
の destroy
ExceptionSE
public static org.springframework.validation.Validator get(org.springframework.context.ApplicationContext applicationContext, org.springframework.validation.Validator validator)
Validator
インターフェースのみを実装する Validator
を返し、必要に応じてラップします。 指定された Validator
が null
でない場合は、ラップされます。そうでない場合、Validator
EE はコンテキストから取得され、ラップされます。それ以外の場合は、新しいデフォルトのバリデーターが作成されます。
applicationContext
- アプリケーションコンテキスト validator
- 使用する既存のバリデーターまたは null
Copyright © 2019 Pivotal Software, Inc.. All rights reserved.