https://github.com/pke/file.monitor
A monitor for changes in the filesystem
https://github.com/pke/file.monitor
Last synced: 3 months ago
JSON representation
A monitor for changes in the filesystem
- Host: GitHub
- URL: https://github.com/pke/file.monitor
- Owner: pke
- Created: 2010-02-20T20:03:00.000Z (over 15 years ago)
- Default Branch: master
- Last Pushed: 2010-03-13T13:39:42.000Z (over 15 years ago)
- Last Synced: 2025-04-15T12:26:02.179Z (6 months ago)
- Language: Java
- Homepage:
- Size: 765 KB
- Stars: 6
- Watchers: 4
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.textile
Awesome Lists containing this project
README
A file monitor for Java (OSGi) applications.
{toc}
h1. Introduction
It uses a system function to notifiy listeners about changes in the file-system.
h1. Usage
h2. General
Some examples of usage are:
h2. In an OSGi environment
The code was developed for OSGi environments in mind. All provided jars are valid OSGi bundles.
h1. Implementations
h2. Supported file-systems
Currently there is only a Win32 implementation based on "ReadDirectoryChangesW":http://msdn.microsoft.com/en-us/library/aa365465%28VS.85%29.aspx.
Feel free to fork this repository and add an implementation for your file-system.h2. OSGi support
The @file.monitor.osgi.event@ implements an FileListener that translates the FileEvent into a EventAdmin event with topic and properties.
h1. License
This code and the accompanying materials are made available under the terms of the "Eclipse Public License v1.0":http://www.eclipse.org/legal/epl-v10.html which accompanies this distribution, and is available at "http://www.eclipse.org/legal/epl-v10.html":http://www.eclipse.org/legal/epl-v10.html.