Package com.io7m.jade.api.internal
Class ApplicationOverrideDirectories
java.lang.Object
com.io7m.jade.api.internal.ApplicationOverrideDirectories
- All Implemented Interfaces:
ApplicationDirectoryProviderType
public final class ApplicationOverrideDirectories
extends Object
implements ApplicationDirectoryProviderType
A set of directories that override the default selection.
-
Constructor Summary
ConstructorDescriptionApplicationOverrideDirectories
(Path inBaseDirectory) A set of directories that override the default selection. -
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
-
ApplicationOverrideDirectories
A set of directories that override the default selection.- Parameters:
inBaseDirectory
- The base directory
-
-
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.
-