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