Returns a parameter decorator that validates the parameter. Expects
a validator class to be passed in. If the Validator.validate method
returns a value, the value will be set as the parameter. If the
Validator.validate method throws an error, the error will be passed up.
Validate Parameter Decorator Factory
Returns a parameter decorator that validates the parameter. Expects a validator class to be passed in. If the Validator.validate method returns a value, the value will be set as the parameter. If the Validator.validate method throws an error, the error will be passed up.
Returns