Package org.glassfish.kernel
Class FileMonitoringImpl
- java.lang.Object
-
- org.glassfish.kernel.FileMonitoringImpl
-
- All Implemented Interfaces:
FileMonitoring
,org.glassfish.hk2.api.PostConstruct
@Service public class FileMonitoringImpl extends Object implements FileMonitoring, org.glassfish.hk2.api.PostConstruct
- Author:
- Jerome Dochez
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.glassfish.api.admin.FileMonitoring
FileMonitoring.FileChangeListener
-
-
Constructor Summary
Constructors Constructor Description FileMonitoringImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
fileModified(File file)
Informs the monitor that a file has been changed.void
monitors(File file, FileMonitoring.FileChangeListener listener)
Registers a FileChangeListener for a particular filevoid
postConstruct()
-
-
-
Method Detail
-
postConstruct
public void postConstruct()
- Specified by:
postConstruct
in interfaceorg.glassfish.hk2.api.PostConstruct
-
monitors
public void monitors(File file, FileMonitoring.FileChangeListener listener)
Description copied from interface:FileMonitoring
Registers a FileChangeListener for a particular file- Specified by:
monitors
in interfaceFileMonitoring
- Parameters:
file
- the file of interestlistener
- the listener to notify
-
fileModified
public void fileModified(File file)
Description copied from interface:FileMonitoring
Informs the monitor that a file has been changed. This is a hint to the monitor to prevent missing changes that occur within the granularity of the operating system's file modification time, typically 1 second.- Specified by:
fileModified
in interfaceFileMonitoring
-
-