ApplicationTemp

open class ApplicationTemp

Provides access to an application specific temporary directory. Generally speaking different Spring Boot applications will get different locations, however, simply restarting an application will give the same location.

Author

Phillip Webb

Since

2.0.0

Constructors

Link copied to clipboard
constructor()
Create a new ApplicationTemp instance.
constructor(sourceClass: Class<out Any>)
Create a new ApplicationTemp instance for the specified source class.

Functions

Link copied to clipboard
open fun getDir(): File
Return the directory to be used for application specific temp files.
open fun getDir(subDir: String): File
Return a subdirectory of the application temp.
Link copied to clipboard
open fun toString(): String