private void installURLStreamHandlerFactory(BundleContext context) { URLStreamHandlerFactoryImpl shf = new URLStreamHandlerFactoryImpl(context, container); try { // first try the standard way URL.setURLStreamHandlerFactory(shf); } catch (Error err) { try { // ok we failed now use more drastic means to set the factory forceURLStreamHandlerFactory(shf); } catch (Exception ex) { container.getLogServices().log(EquinoxContainer.NAME, FrameworkLogEntry.ERROR, ex.getMessage(), ex); throw err; } } urlStreamHandlerFactory = shf; }
private void installURLStreamHandlerFactory(BundleContext context) { URLStreamHandlerFactoryImpl shf = new URLStreamHandlerFactoryImpl(context, container); try { // first try the standard way URL.setURLStreamHandlerFactory(shf); } catch (Error err) { try { // ok we failed now use more drastic means to set the factory forceURLStreamHandlerFactory(shf); } catch (Exception ex) { container.getLogServices().log(EquinoxContainer.NAME, FrameworkLogEntry.ERROR, ex.getMessage(), ex); throw err; } } urlStreamHandlerFactory = shf; }
private void installURLStreamHandlerFactory(BundleContext context) { URLStreamHandlerFactoryImpl shf = new URLStreamHandlerFactoryImpl(context, container); try { // first try the standard way URL.setURLStreamHandlerFactory(shf); } catch (Error err) { try { // ok we failed now use more drastic means to set the factory forceURLStreamHandlerFactory(shf); } catch (Exception ex) { container.getLogServices().log(EquinoxContainer.NAME, FrameworkLogEntry.ERROR, ex.getMessage(), ex); throw err; } } urlStreamHandlerFactory = shf; }
private void installURLStreamHandlerFactory(BundleContext context) { URLStreamHandlerFactoryImpl shf = new URLStreamHandlerFactoryImpl(context, container); try { // first try the standard way URL.setURLStreamHandlerFactory(shf); } catch (Error err) { try { // ok we failed now use more drastic means to set the factory forceURLStreamHandlerFactory(shf); } catch (Exception ex) { container.getLogServices().log(EquinoxContainer.NAME, FrameworkLogEntry.ERROR, ex.getMessage(), ex); throw err; } } urlStreamHandlerFactory = shf; }
private void installURLStreamHandlerFactory(BundleContext context) { URLStreamHandlerFactoryImpl shf = new URLStreamHandlerFactoryImpl(context, container); try { // first try the standard way URL.setURLStreamHandlerFactory(shf); } catch (Error err) { try { // ok we failed now use more drastic means to set the factory forceURLStreamHandlerFactory(shf); } catch (Exception ex) { container.getLogServices().log(EquinoxContainer.NAME, FrameworkLogEntry.ERROR, ex.getMessage(), ex); throw err; } } urlStreamHandlerFactory = shf; }
private void installURLStreamHandlerFactory(BundleContext context) { URLStreamHandlerFactoryImpl shf = new URLStreamHandlerFactoryImpl(context, container); try { // first try the standard way URL.setURLStreamHandlerFactory(shf); } catch (Error err) { try { // ok we failed now use more drastic means to set the factory forceURLStreamHandlerFactory(shf); } catch (Exception ex) { container.getLogServices().log(EquinoxContainer.NAME, FrameworkLogEntry.ERROR, ex.getMessage(), ex); throw err; } } urlStreamHandlerFactory = shf; }