Package com.io7m.jade.spi
Interface ApplicationEnvironmentType
- All Known Implementing Classes:
ApplicationRealEnvironment
public interface ApplicationEnvironmentType
An abstraction over the application's execution 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.
-
Method Details
-
filesystem
FileSystem filesystem()- Returns:
- The application's filesystem
-
systemProperty
Retrieve the value of a system property.- Parameters:
name- The property name- Returns:
- The property value
-
environmentVariable
Retrieve the value of an environment variable.- Parameters:
name- The variable name- Returns:
- The variable value
-
servicesFor
- Type Parameters:
S- The service type- Parameters:
clazz- The service class- Returns:
- Available services of type
S
-