Package com.io7m.jade.api.internal
Class ApplicationRealEnvironment
java.lang.Object
com.io7m.jade.api.internal.ApplicationRealEnvironment
- All Implemented Interfaces:
ApplicationEnvironmentType
An application environment based on the real system environment.
-
Constructor Summary
ConstructorDescriptionAn application environment based on the real system environment. -
Method Summary
Modifier and TypeMethodDescriptionenvironmentVariable
(String name) Retrieve the value of an environment variable.<S> Iterator<S>
servicesFor
(Class<S> clazz) systemProperty
(String name) Retrieve the value of a system property.
-
Constructor Details
-
ApplicationRealEnvironment
public ApplicationRealEnvironment()An application environment based on the real system environment.
-
-
Method Details
-
filesystem
- Specified by:
filesystem
in interfaceApplicationEnvironmentType
- Returns:
- The application's filesystem
-
systemProperty
Description copied from interface:ApplicationEnvironmentType
Retrieve the value of a system property.- Specified by:
systemProperty
in interfaceApplicationEnvironmentType
- Parameters:
name
- The property name- Returns:
- The property value
-
environmentVariable
Description copied from interface:ApplicationEnvironmentType
Retrieve the value of an environment variable.- Specified by:
environmentVariable
in interfaceApplicationEnvironmentType
- Parameters:
name
- The variable name- Returns:
- The variable value
-
servicesFor
- Specified by:
servicesFor
in interfaceApplicationEnvironmentType
- Type Parameters:
S
- The service type- Parameters:
clazz
- The service class- Returns:
- Available services of type
S
-