Skip to content

Instantly share code, notes, and snippets.

@mkubala
Last active December 25, 2015 02:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mkubala/81f826a44b9671da0b9c to your computer and use it in GitHub Desktop.
Save mkubala/81f826a44b9671da0b9c to your computer and use it in GitHub Desktop.
import scala.collection.JavaConversions._
val mainConfig = ConfigFactory.load("nestedConfExample")
mainConfig.getConfigList("some.namespace.users") map (new UserObject(_))
// => ArrayBuffer(UserObject{name='firstUser', age=25}, UserObject{name='secondUser', age=35})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment