org.qi4j.library.fileconfig
Interface FileConfiguration
- All Known Subinterfaces:
- FileConfigurationService
- All Known Implementing Classes:
- FileConfigurationService.Mixin
public interface FileConfiguration
Service for accessing application-specific directories.
These will default to the platform settings, but can be overridden manually, either one-by-one or as a whole.
You can override defaults by adding org.qi4j.library.fileconfig.FileConfiguration_OS.properties files to your
classpath where OS is one of win, mac or unix.
You can also override all properties definitions at assembly time by setting a FileConfigurationOverride object
as meta info of this service.
Services will most likely want to create their own subdirectories in the directories accessed
from here.
os
FileConfiguration.OS os()
user
java.io.File user()
configurationDirectory
java.io.File configurationDirectory()
dataDirectory
java.io.File dataDirectory()
temporaryDirectory
java.io.File temporaryDirectory()
cacheDirectory
java.io.File cacheDirectory()
logDirectory
java.io.File logDirectory()