Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Call #asJava recursively in play.api.Configuration.from #938

Conversation

tototoshi
Copy link
Member

Now, for example, you need to write additionalConfiguration for FakeApplication like the following when it contains List[A]...

  FakeApplication(
    additionalConfiguration = Map("foo" -> List("a", "b", "c").asJava)
  )

This is a API for Scala, so it isn't cool to call #asJava in this way.
I changed Configuration.from(data: Map[String, Any]) a little,
and It now convert the value of Map[String, Any] internaly to fit with the API of typesafeconfig.

Now, for example, you need to write additionalConfiguration for FakeApplication like the following when it contains List[A]...

  FakeApplication(
    additionalConfiguration = Map("foo" -> List("a", "b", "c").asJava)
  )

This is a API for Scala, so it isn't cool to call #asJava in this way.
I changed Configuration.from(data: Map[String, Any]) a little,
and It now convert the value of Map[String, Any] internaly to fit with the API of typesafeconfig.
jroper added a commit that referenced this pull request Apr 5, 2013
…figuration.from

Call #asJava recursively in play.api.Configuration.from
@jroper jroper merged commit db35122 into playframework:master Apr 5, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants