@Singleton @Named public final class DefaultTrackingFileManager extends java.lang.Object implements TrackingFileManager
| Modifier and Type | Field and Description |
|---|---|
private static org.slf4j.Logger |
LOGGER |
| Constructor and Description |
|---|
DefaultTrackingFileManager() |
| Modifier and Type | Method and Description |
|---|---|
java.util.Properties |
read(java.io.File file)
Reads up the specified properties file into
Properties, if exists, otherwise null is returned. |
java.util.Properties |
update(java.io.File file,
java.util.Map<java.lang.String,java.lang.String> updates)
Applies updates to specified properties file and returns resulting
Properties with contents same
as in updated file, never null. |
public java.util.Properties read(java.io.File file)
TrackingFileManagerProperties, if exists, otherwise null is returned.read in interface TrackingFileManagerpublic java.util.Properties update(java.io.File file,
java.util.Map<java.lang.String,java.lang.String> updates)
TrackingFileManagerProperties with contents same
as in updated file, never null.update in interface TrackingFileManager