Package com.io7m.jade.api.internal
Class ApplicationPortableDirectories
java.lang.Object
com.io7m.jade.api.internal.ApplicationPortableDirectories
- All Implemented Interfaces:
ApplicationDirectoryProviderType
public final class ApplicationPortableDirectories
extends Object
implements ApplicationDirectoryProviderType
A set of "portable" directories.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleaninitialize(ApplicationProviderContextType configuration, ApplicationEnvironmentType environment) Initialize the provider, returningtrueif the provider is applicable to the current application environment and operating system.
-
Constructor Details
-
ApplicationPortableDirectories
public ApplicationPortableDirectories()A set of "portable" directories.
-
-
Method Details
-
initialize
public boolean initialize(ApplicationProviderContextType configuration, ApplicationEnvironmentType environment) Description copied from interface:ApplicationDirectoryProviderTypeInitialize the provider, returningtrueif the provider is applicable to the current application environment and operating system.- Specified by:
initializein interfaceApplicationDirectoryProviderType- Parameters:
configuration- The contextenvironment- The environment- Returns:
trueif this provider is applicable
-
configurationDirectory
- Specified by:
configurationDirectoryin interfaceApplicationDirectoryProviderType- Returns:
- A single base directory relative to which user-specific configuration files should be written.
-
dataDirectory
- Specified by:
dataDirectoryin interfaceApplicationDirectoryProviderType- Returns:
- The directory that contains data files
-
cacheDirectory
- Specified by:
cacheDirectoryin interfaceApplicationDirectoryProviderType- Returns:
- A single base directory relative to which user-specific non-essential (cached) data should be written.
-