net.liftweb.util

Props

object Props extends Logger

Configuration management utilities.

If you want to provide a configuration file for a subset of your application or for a specifig 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
Logger, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. Props
  2. Logger
  3. AnyRef
  4. Any
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. object RunModes extends Enumeration

    Enumeration of available run modes.

  7. def _logger: Logger

    Attributes
    protected
    Definition Classes
    Logger
  8. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  9. def assertLog(assertion: Boolean, msg: ⇒ String): Unit

    Definition Classes
    Logger
  10. def clone(): AnyRef

    Attributes
    protected[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: net.liftweb.common.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

  17. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  18. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  19. def error(msg: ⇒ AnyRef, t: Throwable, marker: Marker): Unit

    Definition Classes
    Logger
  20. def error(msg: ⇒ AnyRef, marker: Marker): Unit

    Definition Classes
    Logger
  21. def error(msg: ⇒ AnyRef, t: Throwable): Unit

    Definition Classes
    Logger
  22. def error(msg: ⇒ AnyRef): Unit

    Definition Classes
    Logger
  23. def error(msg: ⇒ AnyRef, box: net.liftweb.common.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
  24. val fileName: String

  25. def finalize(): Unit

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  26. def get(name: String, defVal: String): String

  27. 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

  28. def getBool(name: String, defVal: Boolean): Boolean

  29. def getBool(name: String): Box[Boolean]

  30. final def getClass(): java.lang.Class[_]

    Definition Classes
    AnyRef → Any
  31. def getInt(name: String, defVal: Int): Int

  32. def getInt(name: String): Box[Int]

  33. def getLong(name: String, defVal: Long): Long

  34. def getLong(name: String): Box[Long]

  35. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  36. lazy val hostName: String

    The resource path segment corresponding to the system hostname.

  37. lazy val inGAE: Boolean

    Is the app running in the Google App engine (the System property in.

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

  38. def info(msg: ⇒ AnyRef, t: Throwable, marker: Marker): Unit

    Definition Classes
    Logger
  39. def info(msg: ⇒ AnyRef, marker: Marker): Unit

    Definition Classes
    Logger
  40. def info(msg: ⇒ AnyRef, t: ⇒ Throwable): Unit

    Definition Classes
    Logger
  41. def info(msg: ⇒ AnyRef): Unit

    Definition Classes
    Logger
  42. def info(msg: ⇒ AnyRef, box: net.liftweb.common.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
  43. def isDebugEnabled: Boolean

    Definition Classes
    Logger
  44. def isErrorEnabled: Boolean

    Definition Classes
    Logger
  45. def isInfoEnabled: Boolean

    Definition Classes
    Logger
  46. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  47. def isTraceEnabled: Boolean

    Definition Classes
    Logger
  48. def isWarnEnabled: Boolean

    Definition Classes
    Logger
  49. lazy val mode: Value

    The mode for which to retrieve properties, retrieved by System.

    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.

  50. lazy val modeName: String

    The resource path segment corresponding to the current mode.

  51. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  52. final def notify(): Unit

    Definition Classes
    AnyRef
  53. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  54. lazy val productionMode: Boolean

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

  55. val propFileName: String

  56. lazy val props: Map[String, String]

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

  57. 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.

  58. 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.

  59. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  60. lazy val testMode: Boolean

    Is the system running in test mode

  61. def toString(): String

    Definition Classes
    AnyRef → Any
  62. 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

  63. def trace(msg: ⇒ AnyRef, t: Throwable, marker: ⇒ Marker): Unit

    Definition Classes
    Logger
  64. def trace(msg: ⇒ AnyRef, marker: Marker): Unit

    Definition Classes
    Logger
  65. def trace(msg: ⇒ AnyRef, t: Throwable): Unit

    Definition Classes
    Logger
  66. def trace(msg: ⇒ AnyRef): Unit

    Definition Classes
    Logger
  67. def trace(msg: ⇒ AnyRef, box: net.liftweb.common.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
  68. 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
  69. lazy val userName: String

    The resource path segment corresponding to the current system user (from System.

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

  70. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  71. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  72. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  73. def warn(msg: ⇒ AnyRef, t: Throwable, marker: Marker): Unit

    Definition Classes
    Logger
  74. def warn(msg: ⇒ AnyRef, marker: Marker): Unit

    Definition Classes
    Logger
  75. def warn(msg: ⇒ AnyRef, t: Throwable): Unit

    Definition Classes
    Logger
  76. def warn(msg: ⇒ AnyRef): Unit

    Definition Classes
    Logger
  77. def warn(msg: ⇒ AnyRef, box: net.liftweb.common.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
  78. var 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.

Inherited from Logger

Inherited from AnyRef

Inherited from Any