public static void validateWith(Class<Validator> provider) {

		try {
			validator = (Validator) ClassFactory.newInstanceOf(provider);
			log.info("Registered validation provider: " + validator.getClass().getName());
		}
		catch (ClassFactoryException e) {
			log.error("Failed to instantiate validation provider: ", e);
			throw new IllegalArgumentException(e);
		}
	}
public static void validateWith ( Class < Validator > provider ) { try { validator = ( Validator ) ClassFactory . newInstanceOf ( provider ) ; log . info ( "Registered validation provider: " + validator . getClass ( ) . getName ( ) ) ; } catch ( ClassFactoryException e ) { log . error ( "Failed to instantiate validation provider: " , e ) ; throw new IllegalArgumentException ( e ) ; } }
Provide an validator to validate arguments

@param provider class type