前から名前は聞いたことはありましたが、使ったことのなかったTypesafeの提供するConfigでちょっと遊んでみました。 typesafehub/config(Configuration library for JVM languages) https://github.com/typesafehub/config Typesafeって、あのTypesafe社ですね。 Scala用のライブラリかと思いきや、Javaで実装されたものなので、ふつうにJavaから使えます。とはいっても、今回Javaからは呼んではいませんが…。 どんなものなのか? Javaで設定ファイルといえば、Properties形式が有名(あとはXMLとか…)ですが、もう少しフォーマットが扱えます。 Propertiesライクな形式 JSON(拡張子を.jsonに) HOCON(Human-Optimized Config
こんにちは。DynalystのHanです。Dynalystではアプリケーションの設定にTypesafe Configを使っています。 そこでProductionやテスト環境毎にアプリケーション設定をどう切り替えてるのかについて簡単に紹介したいと思います。 Typesafe Configを選んだ理由 Scalaをやる前まではJavaエンジニアだったのでアプリケーションの設定ファイルなら何も考えず.propertiesに定義するのは定番だけど、せっかくScalaをやり始めてるのでScalaの開発ではどのライブラリがよく使われているのかを調べていました。 そこで発見したのがTypesafe Configです。 .propertiesも勿論対応してますし、ResourceBundleより便利な機能がたくさんある。 そしてAkka, Play, Slick, SprayなどScalaでは有名なOpe
implemented in plain Java with no dependencies supports files in three formats: Java properties, JSON, and a human-friendly JSON superset merges multiple files across all formats can load from files, URLs, or classpath good support for "nesting" (treat any subtree of the config the same as the whole config) users can override the config with Java system properties, java -Dmyapp.foo.bar=10 supports
Webinar: Akka 24.05 release highlights Tyler Jewell, CEO, Jonas Boner, founder and CTO, and Michael Nash, CISO, delve into the value and power of these new features and enhancements. Q&A to follow. Lightbend aims to democratize distributed systems for developers Tyler Jewell, CEO of Lightbend, talks about some of the key challenges developers are up against with distributed systems and how Lightbe
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く