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
ConstructorsConstructorDescriptionAn 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:
filesystemin interfaceApplicationEnvironmentType- Returns:
- The application's filesystem
-
systemProperty
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
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
- Specified by:
servicesForin interfaceApplicationEnvironmentType- Type Parameters:
S- The service type- Parameters:
clazz- The service class- Returns:
- Available services of type
S
-