@Override
    public void setConstraintValidatorFactory(Configuration<?> apiConfig) {
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
            Tr.entry(tc, "setConstraintValidatorFactory", apiConfig);
        }
        Class<? extends ConstraintValidatorFactory> clazz = null;
        ConstraintValidatorFactory cvf = null;
        if (constraintValidatorFactory != null) {

            try {
                clazz = loadClass(constraintValidatorFactory).asSubclass(ConstraintValidatorFactory.class);
                cvf = instantiateClass(clazz);
            } catch (Throwable t) {
                FFDCFilter.processException(t, CLASS_NAME + ".setConstraintValidatorFactory", "313");
                // message and exception printed out in previous method called.
                // however since we can not create a validation factory throw validationException
                ValidationException e = new ValidationException(t);
                throw e;
            }
        }

        if (cvf != null) {
            apiConfig.constraintValidatorFactory(cvf);
        }

        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
            Tr.exit(tc, "setConstraintValidatorFactory", cvf);
        }
    }
@ Override public void setConstraintValidatorFactory ( Configuration < ? > apiConfig ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { Tr . entry ( tc , "setConstraintValidatorFactory" , apiConfig ) ; } Class < ? extends ConstraintValidatorFactory > clazz = null ; ConstraintValidatorFactory cvf = null ; if ( constraintValidatorFactory != null ) { try { clazz = loadClass ( constraintValidatorFactory ) . asSubclass ( ConstraintValidatorFactory . class ) ; cvf = instantiateClass ( clazz ) ; } catch ( Throwable t ) { FFDCFilter . processException ( t , CLASS_NAME + ".setConstraintValidatorFactory" , "313" ) ; ValidationException e = new ValidationException ( t ) ; throw e ; } } if ( cvf != null ) { apiConfig . constraintValidatorFactory ( cvf ) ; } if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { Tr . exit ( tc , "setConstraintValidatorFactory" , cvf ) ; } }
/*
(non-Javadoc)

@see com.ibm.ws.beanvalidation.config.ValidationConfigurationInterface#setConstraintValidatorFactory(javax.validation.Configuration)