org.jclouds.rest
Class InputParamValidator
java.lang.Object
org.jclouds.rest.InputParamValidator
public class InputParamValidator
- extends Object
Validates method parameters.
Checks the 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.
- Author:
- Oleksiy Yarmula
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
InputParamValidator
@Inject
public InputParamValidator(com.google.inject.Injector injector)
InputParamValidator
public InputParamValidator()
validateMethodParametersOrThrow
public void validateMethodParametersOrThrow(Method method,
Object... args)
- Validates that method parameters are correct, according to
ParamValidators.
- Parameters:
method - method with optionally set ParamValidatorsargs - method arguments with optionally set ParamValidators
- Throws:
IllegalStateException - if validation failed- See Also:
ParamValidators,
Validator
Copyright © 2009-2012 jclouds. All Rights Reserved.