public class InputParamValidator extends Object
ParamValidators annotation for validators. There can be method-level validators that apply to all
parameters, and parameter-level validators. When validation on at least one parameter doesn't pass, throws
IllegalStateException.| Constructor and Description |
|---|
InputParamValidator() |
InputParamValidator(com.google.inject.Injector injector) |
| Modifier and Type | Method and Description |
|---|---|
void |
validateMethodParametersOrThrow(Invocation invocation,
List<com.google.common.reflect.Parameter> parameters)
Validates that method parameters are correct, according to
ParamValidators. |
@Inject public InputParamValidator(com.google.inject.Injector injector)
public InputParamValidator()
public void validateMethodParametersOrThrow(Invocation invocation, List<com.google.common.reflect.Parameter> parameters)
ParamValidators.method - method with optionally set ParamValidatorsargs - method arguments with optionally set ParamValidatorsIllegalStateException - if validation failedParamValidators,
ValidatorCopyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.