jw3 / akka-injects

Dependency Injection for Akka using Guice
Apache License 2.0
3 stars 4 forks source link

Configuration Module DSL #4

Open jw3 opened 8 years ago

jw3 commented 8 years ago

An additional modules option that allows for bindings to be specified using a DSL from within the configuration. Something along the lines of

akka {
    inject {
        cmods = [
            "bind foo.Iface to foo.Impl",
            "bind bar.Iface annotated with baz.Anno to bar.Impl"
        ]
    }
}

The primary requirement of this approach is that the Scala DSL does not change to support it. Whether the bindings are written in code or config is transparent to the injection points.