/** {@inheritDoc} */ public Set<URL> getResources(String path) throws IOException { Set<URL> resources = new HashSet<URL>(); resources.addAll(rootContext.getResources(path)); resources.addAll(getClasspathResources(path)); return resources; }
@Override protected List<URL> getSourceURLs(TilesApplicationContext applicationContext, TilesRequestContextFactory contextFactory) { if (definitions != null) { try { List<URL> result = new LinkedList<URL>(); for (String definition : definitions) { Set<URL> resources = applicationContext.getResources(definition); if (resources != null) { result.addAll(resources); } } return result; } catch (IOException ex) { throw new DefinitionsFactoryException("Cannot load definition URLs", ex); } } else { return super.getSourceURLs(applicationContext, contextFactory); } }
@Override protected List<URL> getSourceURLs(final TilesApplicationContext applicationContext, final TilesRequestContextFactory contextFactory) { final String[] definitions = TilesConfigurerSuperClassIntegration.getDefinitions(this.configurer); if (definitions != null) { try { final List<URL> result = new LinkedList<URL>(); for (String definition : definitions) { result.addAll(applicationContext.getResources(definition)); } return result; } catch (IOException ex) { throw new DefinitionsFactoryException("Cannot load definition URLs", ex); } } return super.getSourceURLs(applicationContext, contextFactory); }
@Override protected List<URL> getSourceURLs(final TilesApplicationContext applicationContext, final TilesRequestContextFactory contextFactory) { final String[] definitions = TilesConfigurerSuperClassIntegration.getDefinitions(this.configurer); if (definitions != null) { try { final List<URL> result = new LinkedList<URL>(); for (String definition : definitions) { result.addAll(applicationContext.getResources(definition)); } return result; } catch (IOException ex) { throw new DefinitionsFactoryException("Cannot load definition URLs", ex); } } return super.getSourceURLs(applicationContext, contextFactory); }
@Override protected List<URL> getSourceURLs(final TilesApplicationContext applicationContext, final TilesRequestContextFactory contextFactory) { final String[] definitions = TilesConfigurerSuperClassIntegration.getDefinitions(this.configurer); if (definitions != null) { try { final List<URL> result = new LinkedList<URL>(); for (String definition : definitions) { result.addAll(applicationContext.getResources(definition)); } return result; } catch (IOException ex) { throw new DefinitionsFactoryException("Cannot load definition URLs", ex); } } return super.getSourceURLs(applicationContext, contextFactory); }
Set<URL> urls = applicationContext.getResources(resources[i]); if (urls != null && !urls.isEmpty()) { for (URL resourceUrl : urls) {