Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
when all you've got are properties files
Scala
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
src/main/scala
.gitignore
LICENSE
README.md

README.md

props

simple(r) access to java property files

not everyone starts with a dsl'd config file

features

  • typeclassed type coercion
  • propery currying via property namespaces

usage

object App extends Application {
  import props.Props._
  val prod = Props()(file("app.properties")).ns("production")
  val db = prod.ns("db")
  val connections = db[Int]("maxconnections").getOrElse(1000)
  val pool = Pool(connections) {
    Db(db[String]("host"), db[Int]("port"))
  }
}

Doug Tangren (softprops) 2011

Something went wrong with that request. Please try again.