194195196197198199200201202203204
break; case DELETED: changes.add(new ResourceDeleted(resource)); break; case MODIFIED: changes.add(new ResourceModified(resource)); break; } } } catch (Exception e)
190191192193194195196197198199200
128129130131132133134135136137138
186187188189190191192193194195196
320321322323324325326327328329330
{ System.gc(); } } resourceFactory.fireEvent(new ResourceModified(this)); } catch (IOException e) { throw new ResourceException(e); }
39404142434445
@Override public void onDirectoryChange(File directory) { DirectoryResource dir = resourceFactory.create(DirectoryResource.class, directory); fireEvent(new ResourceModified(dir)); }
60616263646566
@Override public void onFileChange(File file) { FileResource<?> fileResource = resourceFactory.create(FileResource.class, file); fireEvent(new ResourceModified(fileResource)); }
137138139140141142143144145146147
323324325326327328329330331332333
67686970717273
} void onPathModify(Path path) { FileResource<?> fileResource = resourceFactory.create(FileResource.class, path.toFile()); fireEvent(new ResourceModified(fileResource)); }