Class 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.FileSystem filesystem()  
      <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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ApplicationRealEnvironment

        public ApplicationRealEnvironment()
    • Method Detail

      • systemProperty

        public java.util.Optional<java.lang.String> systemProperty​(java.lang.String name)
        Description copied from interface: ApplicationEnvironmentType
        Retrieve the value of a system property.
        Specified by:
        systemProperty in interface ApplicationEnvironmentType
        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: ApplicationEnvironmentType
        Retrieve the value of an environment variable.
        Specified by:
        environmentVariable in interface ApplicationEnvironmentType
        Parameters:
        name - The variable name
        Returns:
        The variable value
      • servicesFor

        public <S> java.util.Iterator<S> servicesFor​(java.lang.Class<S> clazz)
        Specified by:
        servicesFor in interface ApplicationEnvironmentType
        Type Parameters:
        S - The service type
        Parameters:
        clazz - The service class
        Returns:
        Available services of type S