@ SuppressWarnings ( "unused" ) public static void preload ( ) { for ( int i = 0 ; i < PROTOCOLS . length ; i ++ ) { try { URL url = new URL ( PROTOCOLS [ i ] , "" , - 1 , "" ) ; log . trace ( "Loaded protocol: " + PROTOCOLS [ i ] ) ; } catch ( Exception e ) { log . warn ( "Failed to load protocol: " + PROTOCOLS [ i ] , e ) ; } } }
Preload the JBoss specific protocol handlers so that URL knows about them even if the handler factory is changed .