Packages

object Props extends Props

Configuration management utilities.

If you want to provide a configuration file for a subset of your application or for a specific environment, Lift expects configuration files to be named in a manner relating to the context in which they are being used. The standard name format is:

$modeName.$userName.$hostName.$props

examples:
dpp.yak.props
test.dpp.yak.props
production.moose.props
staging.dpp.props
test.default.props
default.props

with hostName and userName being optional, and modeName being one of "test", "staging", "production", "pilot", "profile", or "default". The standard Lift properties file extension is "props".

Linear Supertypes
Props, Logger, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Props
  2. Props
  3. Logger
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. type InterpolationValues = Map[String, String]
    Definition Classes
    Props
  2. type PropProvider = Map[String, String]
    Definition Classes
    Props
  3. class RunModeProperty[T] extends Logger

    Exposes a property affecting run-mode determination, for customisation.

    Exposes a property affecting run-mode determination, for customisation. If the property is modified after the run-mode is realised, then it will have no effect and will instead log a warning indicating thus.

    Definition Classes
    Props

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. def _logger: Logger
    Attributes
    protected
    Definition Classes
    Logger
  5. def appendInterpolationValues(interpolationValues: InterpolationValues): Seq[InterpolationValues]

    Updates Props to find values in the argument when interpolating values found in providers.

    Updates Props to find values in the argument when interpolating values found in providers.

    Definition Classes
    Props
    Note

    You can only modify these BEFORE you look up any props!

  6. def appendProvider(provider: PropProvider): List[PropProvider]

    Updates Props to find property values in the argument AFTER first looking in the standard Lift prop files.

    Updates Props to find property values in the argument AFTER first looking in the standard Lift prop files.

    provider

    Arbitrary map of property key -> property value.

    Definition Classes
    Props
    Note

    You can only modify these BEFORE you look up any props!

  7. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  8. def assertLog(assertion: Boolean, msg: ⇒ String): Unit
    Definition Classes
    Logger
  9. val autoDetectRunModeFn: RunModeProperty[() ⇒ Props.RunModes.Value]

    When the run.mode environment variable isn't set or recognised, this function is invoked to determine the appropriate mode to use.

    When the run.mode environment variable isn't set or recognised, this function is invoked to determine the appropriate mode to use.

    This logic can be customised by calling set before the run-mode is referenced. (An attempt to customise this after the run-mode is realised will have no effect and will instead log a warning.)

    Definition Classes
    Props
  10. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  11. def debug(msg: ⇒ AnyRef, t: Throwable, marker: Marker): Unit
    Definition Classes
    Logger
  12. def debug(msg: ⇒ AnyRef, marker: Marker): Unit
    Definition Classes
    Logger
  13. def debug(msg: ⇒ AnyRef, t: Throwable): Unit
    Definition Classes
    Logger
  14. def debug(msg: ⇒ AnyRef): Unit
    Definition Classes
    Logger
  15. def debug(msg: ⇒ AnyRef, box: Box[_]): Unit

    Debug a Failure.

    Debug a Failure. If the log level is debug and the Box is a Failure, debug the message concatenated with the Failure's message. If the Failure contains an Exception, debug that as well.

    Definition Classes
    Logger
  16. lazy val devMode: Boolean

    Is the system running in development mode

    Is the system running in development mode

    Definition Classes
    Props
  17. val doesStackTraceContainKnownTestRunner: RunModeProperty[(Array[StackTraceElement]) ⇒ Boolean]

    The default run-mode auto-detection routine uses this function to infer whether Lift is being run in a test.

    The default run-mode auto-detection routine uses this function to infer whether Lift is being run in a test.

    This routine can be customised by calling set before the run-mode is referenced. (An attempt to customise this after the run-mode is realised will have no effect and will instead log a warning.)

    Definition Classes
    Props
  18. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  19. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  20. def error(msg: ⇒ AnyRef, t: Throwable, marker: Marker): Unit
    Definition Classes
    Logger
  21. def error(msg: ⇒ AnyRef, marker: Marker): Unit
    Definition Classes
    Logger
  22. def error(msg: ⇒ AnyRef, t: Throwable): Unit
    Definition Classes
    Logger
  23. def error(msg: ⇒ AnyRef): Unit
    Definition Classes
    Logger
  24. def error(msg: ⇒ AnyRef, box: Box[_]): Unit

    Error a Failure.

    Error a Failure. If the log level is error and the Box is a Failure, error the message concatenated with the Failure's message. If the Failure contains an Exception, error that as well.

    Definition Classes
    Logger
  25. val fileName: String
    Definition Classes
    Props
  26. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  27. def get(name: String, defVal: String): String
    Definition Classes
    Props
  28. def get(name: String): Box[String]

    Get the configuration property value for the specified key.

    Get the configuration property value for the specified key.

    name

    key for the property to get

    returns

    the value of the property if defined

    Definition Classes
    Props
  29. def getBool(name: String, defVal: Boolean): Boolean
    Definition Classes
    Props
  30. def getBool(name: String): Box[Boolean]
    Definition Classes
    Props
  31. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
  32. def getInt(name: String, defVal: Int): Int
    Definition Classes
    Props
  33. def getInt(name: String): Box[Int]
    Definition Classes
    Props
  34. def getLong(name: String, defVal: Long): Long
    Definition Classes
    Props
  35. def getLong(name: String): Box[Long]
    Definition Classes
    Props
  36. def hashCode(): Int
    Definition Classes
    AnyRef → Any
  37. lazy val hostName: String

    The resource path segment corresponding to the system hostname.

    The resource path segment corresponding to the system hostname.

    Definition Classes
    Props
  38. lazy val inGAE: Boolean

    Is the app running in the Google App engine (the System property in.gae.j is set)

    Is the app running in the Google App engine (the System property in.gae.j is set)

    Definition Classes
    Props
  39. def info(msg: ⇒ AnyRef, t: Throwable, marker: Marker): Unit
    Definition Classes
    Logger
  40. def info(msg: ⇒ AnyRef, marker: Marker): Unit
    Definition Classes
    Logger
  41. def info(msg: ⇒ AnyRef, t: ⇒ Throwable): Unit
    Definition Classes
    Logger
  42. def info(msg: ⇒ AnyRef): Unit
    Definition Classes
    Logger
  43. def info(msg: ⇒ AnyRef, box: Box[_]): Unit

    Info a Failure.

    Info a Failure. If the log level is info and the Box is a Failure, info the message concatenated with the Failure's message. If the Failure contains an Exception, info that as well.

    Definition Classes
    Logger
  44. def isDebugEnabled: Boolean
    Definition Classes
    Logger
  45. def isErrorEnabled: Boolean
    Definition Classes
    Logger
  46. def isInfoEnabled: Boolean
    Definition Classes
    Logger
  47. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  48. def isTraceEnabled: Boolean
    Definition Classes
    Logger
  49. def isWarnEnabled: Boolean
    Definition Classes
    Logger
  50. lazy val mode: Props.RunModes.Value

    The mode for which to retrieve properties, retrieved by System.getProperty("run.mode").

    The mode for which to retrieve properties, retrieved by System.getProperty("run.mode"). Recognized modes are "development", "test", "profile", "pilot", "staging" and "production" with the default run mode being development.

    Definition Classes
    Props
  51. lazy val modeName: String

    The resource path segment corresponding to the current mode.

    The resource path segment corresponding to the current mode.

    Definition Classes
    Props
  52. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  53. final def notify(): Unit
    Definition Classes
    AnyRef
  54. final def notifyAll(): Unit
    Definition Classes
    AnyRef
  55. def prependProvider(provider: PropProvider): List[PropProvider]

    Updates Props to find property values in the argument BEFORE looking in the standard Lift prop files.

    Updates Props to find property values in the argument BEFORE looking in the standard Lift prop files.

    provider

    Arbitrary map of property key -> property value to be used for property lookup.

    Definition Classes
    Props
    Note

    You can only modify these BEFORE you look up any props!

  56. lazy val productionMode: Boolean

    Is the system running in production mode (apply full optimizations)

    Is the system running in production mode (apply full optimizations)

    Definition Classes
    Props
  57. val propFileName: String
    Definition Classes
    Props
  58. lazy val props: Map[String, String]

    The map of key/value pairs retrieved from the property file.

    The map of key/value pairs retrieved from the property file.

    Definition Classes
    Props
  59. def require(what: String*): Seq[String]

    Determine whether the specified properties exist.

    Determine whether the specified properties exist.

    what

    the properties to test

    returns

    the subset of strings in 'what' that do not correspond to keys for available properties.

    Definition Classes
    Props
  60. def requireOrDie(what: String*): Unit

    Ensure that all of the specified properties exist; throw an exception if any of the specified values are not keys for available properties.

    Ensure that all of the specified properties exist; throw an exception if any of the specified values are not keys for available properties.

    Definition Classes
    Props
  61. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  62. lazy val testMode: Boolean

    Is the system running in test mode

    Is the system running in test mode

    Definition Classes
    Props
  63. def toString(): String
    Definition Classes
    AnyRef → Any
  64. lazy val toTry: List[() ⇒ String]

    The list of paths to search for property file resources.

    The list of paths to search for property file resources. Properties files may be found at either the classpath root or in /props

    Definition Classes
    Props
  65. def trace(msg: ⇒ AnyRef, t: Throwable, marker: ⇒ Marker): Unit
    Definition Classes
    Logger
  66. def trace(msg: ⇒ AnyRef, marker: Marker): Unit
    Definition Classes
    Logger
  67. def trace(msg: ⇒ AnyRef, t: Throwable): Unit
    Definition Classes
    Logger
  68. def trace(msg: ⇒ AnyRef): Unit
    Definition Classes
    Logger
  69. def trace(msg: ⇒ AnyRef, box: Box[_]): Unit

    Trace a Failure.

    Trace a Failure. If the log level is trace and the Box is a Failure, trace the message concatenated with the Failure's message. If the Failure contains an Exception, trace that as well.

    Definition Classes
    Logger
  70. def trace[T](msg: String, v: T): T

    Log the value of v with trace and return v.

    Log the value of v with trace and return v. Useful for tracing values in expressions

    Definition Classes
    Logger
  71. def updateInterpolationValues(updater: (List[InterpolationValues]) ⇒ List[InterpolationValues]): List[InterpolationValues]

    Passes the current InterpolationValuess to the passed updater, then sets the providers to the result of the updater.

    Passes the current InterpolationValuess to the passed updater, then sets the providers to the result of the updater. Consider using appendInterpolationValues instead.

    updater

    Function that gets the current InterpolationValuess and returns the new ones to use.

    Definition Classes
    Props
    Note

    You can only modify these BEFORE you look up any props!

  72. def updateProviders(updater: (List[PropProvider]) ⇒ List[PropProvider]): List[PropProvider]

    Passes the current PropProviders to the passed updater, then sets the providers to the result of the updater.

    Passes the current PropProviders to the passed updater, then sets the providers to the result of the updater. Consider using appendProvider or prependProvider instead.

    updater

    Function that gets the current PropProviders and returns the new ones to use.

    Definition Classes
    Props
    Note

    You can only modify these BEFORE you look up any props!

  73. lazy val userName: String

    The resource path segment corresponding to the current system user (from System.getProperty("user.name"))

    The resource path segment corresponding to the current system user (from System.getProperty("user.name"))

    Definition Classes
    Props
  74. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  75. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  76. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  77. def warn(msg: ⇒ AnyRef, t: Throwable, marker: Marker): Unit
    Definition Classes
    Logger
  78. def warn(msg: ⇒ AnyRef, marker: Marker): Unit
    Definition Classes
    Logger
  79. def warn(msg: ⇒ AnyRef, t: Throwable): Unit
    Definition Classes
    Logger
  80. def warn(msg: ⇒ AnyRef): Unit
    Definition Classes
    Logger
  81. def warn(msg: ⇒ AnyRef, box: Box[_]): Unit

    Warn a Failure.

    Warn a Failure. If the log level is warn and the Box is a Failure, warn the message concatenated with the Failure's message. If the Failure contains an Exception, warn that as well.

    Definition Classes
    Logger
  82. val whereToLook: () ⇒ List[(String, () ⇒ Box[InputStream])]

    This is a function that returns the first places to look for a props file.

    This is a function that returns the first places to look for a props file. The function returns a List of String -> () => Box[InputStream]. So, if you want to consult System.getProperties to look for a properties file or some such, you can set the whereToLook function in your Boot.scala file before you call anything else in Props.

    Definition Classes
    Props
    Annotations
    @volatile()
  83. object RunModes extends Enumeration

    Enumeration of available run modes.

Inherited from Props

Inherited from Logger

Inherited from AnyRef

Inherited from Any

Ungrouped