private void setupData ( ValidationConfig config , ClassLoader classLoader ) { // A config object is always used to use a common code path, so the parsed // ValidationConfig may be null if a validation.xml wasn't found. if ( config != null ) { versionID = config . getVersionID ( ) ; defaultProvider = config . getDefaultProvider ( ) ; defaultProvider = defaultProvider != null ? defaultProvider . trim ( ) : defaultProvider ; messageInterpolator = config . getMessageInterpolator ( ) ; messageInterpolator = messageInterpolator != null ? messageInterpolator . trim ( ) : messageInterpolator ; traversableResolver = config . getTraversableResolver ( ) ; traversableResolver = traversableResolver != null ? traversableResolver . trim ( ) : traversableResolver ; constraintMapping = config . getConstraintMappings ( ) ; constraintValidatorFactory = config . getConstraintValidatorFactory ( ) ; constraintValidatorFactory = constraintValidatorFactory != null ? constraintValidatorFactory . trim ( ) : constraintValidatorFactory ; properties = config . getProperties ( ) ; } appClassloader = classLoader ; }
Internal method to set up the object s data