private void init() { compositeResourceFinder = new CompositeResourceFinder(); for (final String p : packages) { try { final Enumeration<URL> urls = ResourcesProvider.getInstance().getResources(p.replace('.', '/'), classloader); while (urls.hasMoreElements()) { try { addResourceFinder(toURI(urls.nextElement())); } catch (final URISyntaxException e) { throw new ResourceFinderException("Error when converting a URL to a URI", e); } } } catch (final IOException e) { throw new ResourceFinderException("IO error when package scanning jar", e); } } }
private void init() { compositeResourceFinder = new CompositeResourceFinder(); for (final String p : packages) { try { final Enumeration<URL> urls = ResourcesProvider.getInstance().getResources(p.replace('.', '/'), classloader); while (urls.hasMoreElements()) { try { addResourceFinder(toURI(urls.nextElement())); } catch (final URISyntaxException e) { throw new ResourceFinderException("Error when converting a URL to a URI", e); } } } catch (final IOException e) { throw new ResourceFinderException("IO error when package scanning jar", e); } } }
private void init() { compositeResourceFinder = new CompositeResourceFinder(); for (final String p : packages) { try { final Enumeration<URL> urls = ResourcesProvider.getInstance().getResources(p.replace('.', '/'), classloader); while (urls.hasMoreElements()) { try { addResourceFinder(toURI(urls.nextElement())); } catch (final URISyntaxException e) { throw new ResourceFinderException("Error when converting a URL to a URI", e); } } } catch (final IOException e) { throw new ResourceFinderException("IO error when package scanning jar", e); } } }
private void init() { compositeResourceFinder = new CompositeResourceFinder(); for (final String p : packages) { try { final Enumeration<URL> urls = ResourcesProvider.getInstance().getResources(p.replace('.', '/'), classloader); while (urls.hasMoreElements()) { try { addResourceFinder(toURI(urls.nextElement())); } catch (final URISyntaxException e) { throw new ResourceFinderException("Error when converting a URL to a URI", e); } } } catch (final IOException e) { throw new ResourceFinderException("IO error when package scanning jar", e); } } }
private void init() { compositeResourceFinder = new CompositeResourceFinder(); for (final String p : packages) { try { final Enumeration<URL> urls = ResourcesProvider.getInstance().getResources(p.replace('.', '/'), classloader); while (urls.hasMoreElements()) { try { addResourceFinder(toURI(urls.nextElement())); } catch (final URISyntaxException e) { throw new ResourceFinderException("Error when converting a URL to a URI", e); } } } catch (final IOException e) { throw new ResourceFinderException("IO error when package scanning jar", e); } } }
private void init() { compositeResourceFinder = new CompositeResourceFinder(); for (final String p : packages) { try { final Enumeration<URL> urls = ResourcesProvider.getInstance().getResources(p.replace('.', '/'), classloader); while (urls.hasMoreElements()) { try { addResourceFinder(toURI(urls.nextElement())); } catch (final URISyntaxException e) { throw new ResourceFinderException("Error when converting a URL to a URI", e); } } } catch (final IOException e) { throw new ResourceFinderException("IO error when package scanning jar", e); } } }
private void init() { compositeResourceFinder = new CompositeResourceFinder(); for (final String p : packages) { try { final Enumeration<URL> urls = ResourcesProvider.getInstance().getResources(p.replace('.', '/'), classloader); while (urls.hasMoreElements()) { try { addResourceFinder(toURI(urls.nextElement())); } catch (final URISyntaxException e) { throw new ResourceFinderException("Error when converting a URL to a URI", e); } } } catch (final IOException e) { throw new ResourceFinderException("IO error when package scanning jar", e); } } }