Package org.jclouds.rest
Class InputParamValidator
- java.lang.Object
 - 
- org.jclouds.rest.InputParamValidator
 
 
- 
public class InputParamValidator extends Object
Validates method parameters. Checks theParamValidatorsannotation 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, throwsIllegalStateException. 
- 
- 
Constructor Summary
Constructors Constructor Description InputParamValidator()InputParamValidator(com.google.inject.Injector injector) 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidvalidateMethodParametersOrThrow(Invocation invocation, List<com.google.common.reflect.Parameter> parameters)Validates that method parameters are correct, according toParamValidators. 
 - 
 
- 
- 
Method Detail
- 
validateMethodParametersOrThrow
public void validateMethodParametersOrThrow(Invocation invocation, List<com.google.common.reflect.Parameter> parameters)
Validates that method parameters are correct, according toParamValidators.- Parameters:
 method- method with optionally setParamValidatorsargs- method arguments with optionally setParamValidators- Throws:
 IllegalStateException- if validation failed- See Also:
 ParamValidators,Validator
 
 - 
 
 -