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(Method method,
Object... args)
Validates that method parameters are correct, according to
ParamValidators. |
@Inject public InputParamValidator(com.google.inject.Injector injector)
public InputParamValidator()
public void validateMethodParametersOrThrow(Method method, Object... args)
ParamValidators.method - method with optionally set ParamValidatorsargs - method arguments with optionally set ParamValidatorsIllegalStateException - if validation failedParamValidators,
ValidatorCopyright © 2009-2013 jclouds. All Rights Reserved.