| Modifier and Type | Field and Description |
|---|---|
| private final Path | |
| private final AtomicReference | |
| protected final LinkOption[] | |
| public static final Set | STRICTLY_PROHIBITED_FILE_PERMISSION
The |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | |
| public final boolean | |
| public final Path | |
| public final FileTime | |
| public void | resetReloadAttributes()
Resets the state attributes used to detect changes to the initial construction values - i.e., file assumed not to exist and no known size of modify time |
| public final long | |
| public PathResource | |
| public PathResource | |
| public String | |
| public void | updateReloadAttributes()
May be called to refresh the state attributes used to detect changes e.g., file existence, size and last-modified time once re-loading is successfully completed. |
| public static AbstractMap. | Returns: The violated permission asSimpleImmutableEntry where key is a loggable message and
value is the offending object - e.g., PosixFilePermission or String for
owner. Return value is null if no violations detectedThe path, LinkOption... Path to be checked - ignored if null or does not existThe options)LinkOptions to use to query the file's permissionsChecks if a path has strict permissions
|
| file | back to summary |
|---|---|
| private final Path file | |
| metadata | back to summary |
|---|---|
| private final AtomicReference<FileSnapshot> metadata | |
| options | back to summary |
|---|---|
| protected final LinkOption[] options | |
| STRICTLY_PROHIBITED_FILE_PERMISSION | back to summary |
|---|---|
| public static final Set<PosixFilePermission> STRICTLY_PROHIBITED_FILE_PERMISSION The | |
| ModifiableFileWatcher | back to summary |
|---|---|
| public ModifiableFileWatcher(Path file) | |
| ModifiableFileWatcher | back to summary |
|---|---|
| public ModifiableFileWatcher(Path file, LinkOption... options) | |
| checkReloadRequired | back to summary |
|---|---|
public boolean checkReloadRequired() throws IOException
| |
| exists | back to summary |
|---|---|
| public final boolean exists() throws IOException | |
| getPath | back to summary |
|---|---|
| public final Path getPath() | |
| lastModified | back to summary |
|---|---|
| public final FileTime lastModified() throws IOException | |
| resetReloadAttributes | back to summary |
|---|---|
| public void resetReloadAttributes() Resets the state attributes used to detect changes to the initial construction values - i.e., file assumed not to exist and no known size of modify time | |
| size | back to summary |
|---|---|
| public final long size() throws IOException | |
| toPathResource | back to summary |
|---|---|
| public PathResource toPathResource() | |
| toPathResource | back to summary |
|---|---|
| public PathResource toPathResource(OpenOption... options) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |
| updateReloadAttributes | back to summary |
|---|---|
| public void updateReloadAttributes() throws IOException May be called to refresh the state attributes used to detect changes e.g., file existence, size and last-modified time once re-loading is successfully completed. If the file does not exist then the attributes are reset to an "unknown" state.
| |
| validateStrictConfigFilePermissions | back to summary |
|---|---|
| public static AbstractMap. Checks if a path has strict permissions
| |