@Test public void testAccessibleChildResource() throws Exception { final URI configFileUri = new URI(configFileUriString); final String resourceFileName = "resourceFile.txt"; assertTrue(this.loader.isAccessible(configFileUri, "classpath: resourceFileName)); assertTrue(this.loader.isAccessible(configFileUri, resourceFileName)); assertFalse(this.loader.isAccessible(configFileUri, getFile(FileConfigFileLoader.class, resourceFileName).toURI() .toString())); assertFalse(this.loader.isAccessible(configFileUri, getFile(FileConfigFileLoader.class, resourceFileName) .getAbsolutePath())); assertFalse(this.loader.isAccessible(configFileUri, getFile(FileConfigFileLoader.class, resourceFileName) .getPath())); assertFalse(this.loader.isAccessible(configFileUri, getFile(FileConfigFileLoader.class, "/test-http-request-factory-application" + "-context.xml") .getAbsolutePath())); assertFalse(this.loader.isAccessible(configFileUri, "classpath: ".xml")); }
@Override public boolean isAccessible(final URI fileURI) { final Optional<URL> resources = loadResources(fileURI); return resources.isPresent(); }
ClasspathConfigFileLoader implements ConfigFileLoaderPlugin { @Override public boolean isAccessible(final URI fileURI) { final Optional<URL> resources = loadResources(fileURI); return resources.isPresent(); } }
ClasspathConfigFileLoader implements ConfigFileLoaderPlugin { @Override public boolean isAccessible(final URI fileURI) { final Optional<URL> resources = loadResources(fileURI); return resources.isPresent(); }  }
ClasspathConfigFileLoader implements ConfigFileLoaderPlugin { @Override public boolean isAccessible(final URI fileURI) { final Optional<URL> resources = loadResources(fileURI); return resources.isPresent(); }  @Override Optional<File> toFile(final URI fileUri); @Override String getUriScheme(); @Override Optional<Long> lastModified(final URI fileURI); @Override boolean isAccessible(final URI fileURI); @Override byte[] loadFile(final URI fileURI); @Override boolean isAccessible(final URI configFileUri, final String pathToSubResource); @Override byte[] loadFile(final URI configFileUri, final String pathToSubResource); }
ClasspathConfigFileLoader implements ConfigFileLoaderPlugin { @Override public boolean isAccessible(final URI fileURI) { final Optional<URL> resources = loadResources(fileURI); return resources.isPresent(); }  @Override Optional<File> toFile(final URI fileUri); @Override String getUriScheme(); @Override Optional<Long> lastModified(final URI fileURI); @Override boolean isAccessible(final URI fileURI); @Override byte[] loadFile(final URI fileURI); @Override boolean isAccessible(final URI configFileUri, final String pathToSubResource); @Override byte[] loadFile(final URI configFileUri, final String pathToSubResource); static final String PREFIX; static final int PREFIX_LENGTH; }