public static VerifierFactory newInstance ( String language , ClassLoader classLoader ) throws VerifierConfigurationException { Iterator itr = providers ( VerifierFactoryLoader . class , classLoader ) ; while ( itr . hasNext ( ) ) { VerifierFactoryLoader loader = ( VerifierFactoryLoader ) itr . next ( ) ; try { VerifierFactory factory = loader . createFactory ( language ) ; if ( factory != null ) return factory ; } catch ( Throwable t ) { } // ignore any error } throw new VerifierConfigurationException ( "no validation engine available for: " + language ) ; }
Creates a new instance of a VerifierFactory for the specified schema language .