public ConstraintValidatorFactory getConstraintValidatorFactoryOverride ( Configuration < ? > config ) { ValidationReleasable < ConstraintValidatorFactory > releasable = null ; String cvfClassName = config . getBootstrapConfiguration ( ) . getConstraintValidatorFactoryClassName ( ) ; // If the validation.xml ConstraintValidatorFactory is null AND the CDI feature is enabled // we can try to create our own implementation of it. if ( cvfClassName == null && releasableFactory != null ) { releasable = releasableFactory . createConstraintValidatorFactory ( ) ; } if ( releasable != null ) { if ( releasables == null ) { releasables = new LinkedList < ValidationReleasable < ? > > ( ) ; } releasables . add ( releasable ) ; return releasable . getInstance ( ) ; } return null ; }
Get the default WebSphere ConstraintValidatorFactory as a managed object .