@Test public void testNeedsReload() { assertFalse(resolver.needsReload("dummy.xml", System.currentTimeMillis() + 1)); File file = new File(rootDir, "dummy.xml"); assertTrue(resolver.needsReload("dummy.xml", file.lastModified() - 1)); }
@Override public boolean needsReload(String location, long lastLoadedOn) { return lastLoadedOn < getFile(location).lastModified(); }
FolderResourceResolver implements ResourceResolver { @Override public boolean needsReload(String location, long lastLoadedOn) { return lastLoadedOn < getFile(location).lastModified(); } }
FolderResourceResolver implements ResourceResolver { @Override public boolean needsReload(String location, long lastLoadedOn) { return lastLoadedOn < getFile(location).lastModified(); } FolderResourceResolver(File baseDir); }
FolderResourceResolver implements ResourceResolver { @Override public boolean needsReload(String location, long lastLoadedOn) { return lastLoadedOn < getFile(location).lastModified(); } FolderResourceResolver(File baseDir); @Override Reader reader(String name); @Override boolean needsReload(String location, long lastLoadedOn); }
FolderResourceResolver implements ResourceResolver { @Override public boolean needsReload(String location, long lastLoadedOn) { return lastLoadedOn < getFile(location).lastModified(); } FolderResourceResolver(File baseDir); @Override Reader reader(String name); @Override boolean needsReload(String location, long lastLoadedOn);  }