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
-
Method Summary
Modifier and TypeMethodDescriptionboolean
initialize
(ApplicationProviderContextType configuration, ApplicationEnvironmentType environment) Initialize the provider, returningtrue
if 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:ApplicationDirectoryProviderType
Initialize the provider, returningtrue
if the provider is applicable to the current application environment and operating system.- Specified by:
initialize
in interfaceApplicationDirectoryProviderType
- Parameters:
configuration
- The contextenvironment
- The environment- Returns:
true
if this provider is applicable
-
configurationDirectory
- Specified by:
configurationDirectory
in interfaceApplicationDirectoryProviderType
- Returns:
- A single base directory relative to which user-specific configuration files should be written.
-
dataDirectory
- Specified by:
dataDirectory
in interfaceApplicationDirectoryProviderType
- Returns:
- The directory that contains data files
-
cacheDirectory
- Specified by:
cacheDirectory
in interfaceApplicationDirectoryProviderType
- Returns:
- A single base directory relative to which user-specific non-essential (cached) data should be written.
-