Interface ApplicationEnvironmentType

All Known Implementing Classes:
ApplicationRealEnvironment

public interface ApplicationEnvironmentType
An abstraction over the application's execution environment.
  • Method Details

    • filesystem

      FileSystem filesystem()
      Returns:
      The application's filesystem
    • systemProperty

      Optional<String> systemProperty(String name)
      Retrieve the value of a system property.
      Parameters:
      name - The property name
      Returns:
      The property value
    • environmentVariable

      Optional<String> environmentVariable(String name)
      Retrieve the value of an environment variable.
      Parameters:
      name - The variable name
      Returns:
      The variable value
    • servicesFor

      <S> Iterator<S> servicesFor(Class<S> clazz)
      Type Parameters:
      S - The service type
      Parameters:
      clazz - The service class
      Returns:
      Available services of type S