Packages

t

zeab.scalaextras.sys

SystemProperties

trait SystemProperties extends EnvironmentVariables

A collection of useful functions for getting and setting system properties in safe ways

Since

2.12

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. SystemProperties
  2. EnvironmentVariables
  3. EnvironmentVariablesHelpers
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  6. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  7. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  8. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  9. def formatValue[T](typeName: String, typeValue: String): Either[Throwable, T]

    Formats the value from a string to the thing specified

    Formats the value from a string to the thing specified

    typeName

    What kind of format ex. (String, Boolean, Int)

    typeValue

    The actual value to try and convert to T

    returns

    Either[Throwable, T]

    Definition Classes
    EnvironmentVariablesHelpers
  10. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  11. def getEnvVar[T](keyToLookFor: String, delimiter: Char, defaultValues: List[T])(implicit typeTag: scala.reflect.api.JavaUniverse.TypeTag[T]): List[T]

    Looks for the values of the environment variable specified split by a delimiter

    Looks for the values of the environment variable specified split by a delimiter

    keyToLookFor

    The environment variables key to look for

    delimiter

    What to split up the values by

    defaultValues

    If the environment variable key is not found return this value instead

    typeTag

    The return type (no need to actually specify this implicit it will default to the supplied T)

    returns

    List[T]

    Definition Classes
    EnvironmentVariables
  12. def getEnvVar[T](keyToLookFor: String, delimiter: Char, customError: Option[Throwable])(implicit typeTag: scala.reflect.api.JavaUniverse.TypeTag[T]): List[T]

    Looks for the values of the environment variable specified split by a delimiter

    Looks for the values of the environment variable specified split by a delimiter

    keyToLookFor

    The environment variables key to look for

    delimiter

    What to split up the values by

    customError

    Throw this error instead of the regular error if it fails

    typeTag

    The return type (no need to actually specify this implicit it will default to the supplied T)

    returns

    List[T]

    Definition Classes
    EnvironmentVariables
  13. def getEnvVar[T](keyToLookFor: String, delimiter: Char)(implicit typeTag: scala.reflect.api.JavaUniverse.TypeTag[T]): Either[Throwable, List[T]]

    Looks for the values of the environment variable specified split by a delimiter

    Looks for the values of the environment variable specified split by a delimiter

    keyToLookFor

    The environment variables key to look for

    delimiter

    What to split up the values by

    typeTag

    The return type (no need to actually specify this implicit it will default to the supplied T)

    returns

    Either[Throwable, List[T]

    Definition Classes
    EnvironmentVariables
  14. def getEnvVar[T](keyToLookFor: String, defaultValue: T)(implicit typeTag: scala.reflect.api.JavaUniverse.TypeTag[T]): T

    Looks for the value of the environment variable specified

    Looks for the value of the environment variable specified

    keyToLookFor

    The environment variables key to look for

    defaultValue

    If the environment variable key is not found return this value instead

    typeTag

    The return type (no need to actually specify this implicit it will default to the supplied T)

    returns

    T

    Definition Classes
    EnvironmentVariables
  15. def getEnvVar[T](keyToLookFor: String, customError: Option[Throwable] = None)(implicit typeTag: scala.reflect.api.JavaUniverse.TypeTag[T]): T

    Looks for the value of the environment variable specified and throws the error or a custom one if not found

    Looks for the value of the environment variable specified and throws the error or a custom one if not found

    keyToLookFor

    The environment variables key to look for

    customError

    The custom throwable to throw if the keyToLookFor is not found

    returns

    T

    Definition Classes
    EnvironmentVariables
  16. def getEnvVar[T](keyToLookFor: String)(implicit typeTag: scala.reflect.api.JavaUniverse.TypeTag[T]): Either[Throwable, T]

    Looks for the value of the environment variable specified

    Looks for the value of the environment variable specified

    keyToLookFor

    The environment variables key to look for

    typeTag

    The return type (no need to actually specify this implicit it will default to the supplied T)

    returns

    Either[Throwable, T]

    Definition Classes
    EnvironmentVariables
  17. def getSysProp[T](keyToLookFor: String, defaultValue: T)(implicit typeTag: scala.reflect.api.JavaUniverse.TypeTag[T]): T

    Looks for the value of the system properties key specified

    Looks for the value of the system properties key specified

    keyToLookFor

    The key to look for

    defaultValue

    What to return if the key is not found

    typeTag

    The return type (no need to actually specify this implicit it will default to the supplied T)

    returns

    T

  18. def getSysProp[T](keyToLookFor: String)(implicit typeTag: scala.reflect.api.JavaUniverse.TypeTag[T]): Either[Throwable, T]

    Looks for the value of the system properties key specified

    Looks for the value of the system properties key specified

    keyToLookFor

    The key to look for

    typeTag

    The return type (no need to actually specify this implicit it will default to the supplied T)

    returns

    Either[Throwable, T]

  19. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  20. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  21. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  22. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  23. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  24. def returnMatch[T](theTry: Try[Any]): Either[Throwable, T]

    Returns either a thing as instance of T or a throwable

    Returns either a thing as instance of T or a throwable

    theTry

    The Try to unwrap

    returns

    Either[Throwable, T]

    Definition Classes
    EnvironmentVariablesHelpers
  25. def setSysProp(envVarKey: String, envVarDefaultValue: String, sysPropKey: String): String

    Sets the value of the system property key from an environment variable specified

    Sets the value of the system property key from an environment variable specified

    envVarKey

    The environment variables key

    envVarDefaultValue

    What to return if the key is not found

    sysPropKey

    The system property key

    returns

    String

  26. def setSysProp(sysPropKey: String, sysPropValue: String): String

    Sets the value of the system property key specified

    Sets the value of the system property key specified

    sysPropKey

    The key to set

    sysPropValue

    The value

    returns

    String

  27. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  28. def toString(): String
    Definition Classes
    AnyRef → Any
  29. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  30. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  31. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )

Inherited from EnvironmentVariables

Inherited from AnyRef

Inherited from Any

Ungrouped