Package com.io7m.jade.api.internal
Class ApplicationRealEnvironment
- java.lang.Object
-
- com.io7m.jade.api.internal.ApplicationRealEnvironment
-
- All Implemented Interfaces:
ApplicationEnvironmentType
public final class ApplicationRealEnvironment extends java.lang.Object implements ApplicationEnvironmentType
-
-
Constructor Summary
Constructors Constructor Description ApplicationRealEnvironment()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Optional<java.lang.String>environmentVariable(java.lang.String name)Retrieve the value of an environment variable.java.nio.file.FileSystemfilesystem()<S> java.util.Iterator<S>servicesFor(java.lang.Class<S> clazz)java.util.Optional<java.lang.String>systemProperty(java.lang.String name)Retrieve the value of a system property.
-
-
-
Method Detail
-
filesystem
public java.nio.file.FileSystem filesystem()
- Specified by:
filesystemin interfaceApplicationEnvironmentType- Returns:
- The application's filesystem
-
systemProperty
public java.util.Optional<java.lang.String> systemProperty(java.lang.String name)
Description copied from interface:ApplicationEnvironmentTypeRetrieve the value of a system property.- Specified by:
systemPropertyin interfaceApplicationEnvironmentType- Parameters:
name- The property name- Returns:
- The property value
-
environmentVariable
public java.util.Optional<java.lang.String> environmentVariable(java.lang.String name)
Description copied from interface:ApplicationEnvironmentTypeRetrieve the value of an environment variable.- Specified by:
environmentVariablein interfaceApplicationEnvironmentType- Parameters:
name- The variable name- Returns:
- The variable value
-
servicesFor
public <S> java.util.Iterator<S> servicesFor(java.lang.Class<S> clazz)
- Specified by:
servicesForin interfaceApplicationEnvironmentType- Type Parameters:
S- The service type- Parameters:
clazz- The service class- Returns:
- Available services of type
S
-
-