public.javadoc.org.spincast.plugins.hotswap.fileswatcher.FileToWatch.html Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spincast-website Show documentation
Show all versions of spincast-website Show documentation
Source code for the https://www.spincast.org website.
FileToWatch (org.spincast:spincast-framework 1.0.0 API)
org.spincast.plugins.hotswap.fileswatcher
Class FileToWatch
- java.lang.Object
-
- org.spincast.plugins.hotswap.fileswatcher.FileToWatch
-
public class FileToWatch
extends Object
-
-
Field Summary
Fields
Modifier and Type
Field and Description
protected static org.slf4j.Logger
logger
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
File
getDir()
protected static File
getFileFromNotInJarClasspath(String relativePath)
String
getFileName()
Pattern
getRegExPattern()
protected static boolean
isInExecutableJar()
boolean
isRegEx()
static FileToWatch
ofClasspath(String classpathFilePath)
Note that a file from the classpath can only
be watched when the application is ran locally
in development mode, not when it runs from a .jar!
static FileToWatch
ofFileSystem(String fileAbsolutePath)
ofFileSystem
static FileToWatch
ofRegEx(String dirPath,
String fileNameRegEx,
boolean isClassPath)
ofRegEx
String
toString()
-
-
Method Detail
-
ofFileSystem
public static FileToWatch ofFileSystem(String fileAbsolutePath)
ofFileSystem
-
ofClasspath
public static FileToWatch ofClasspath(String classpathFilePath)
Note that a file from the classpath can only
be watched when the application is ran locally
in development mode, not when it runs from a .jar!
-
ofRegEx
public static FileToWatch ofRegEx(String dirPath,
String fileNameRegEx,
boolean isClassPath)
ofRegEx
-
getDir
public File getDir()
-
getFileName
public String getFileName()
-
isRegEx
public boolean isRegEx()
-
getRegExPattern
public Pattern getRegExPattern()
-
getFileFromNotInJarClasspath
protected static File getFileFromNotInJarClasspath(String relativePath)
-
isInExecutableJar
protected static boolean isInExecutableJar()
Copyright © 2019. All rights reserved.