It's not too difficult, but I'd suggest to then define the module in scala.

The usage of java classes from scala is trivial, but the other way
around is far more complex.

Your module (in scala) should look like:

class MyModule extends AbstractModule {
  override def configure() {
    bind(classOf[A]).to(classOf[AImpl])
    bind(classOf[B]).to(classOf[BImpl])
    bind(classOf[C]).to(classOf[CImpl])
  }
}

On Fri, Feb 25, 2011 at 12:22 PM, Devangini
<[email protected]> wrote:
> Suppose I have some classes and their providers in both scala and java. How
> do i create a single module for binding them?
>
> --
> You received this message because you are subscribed to the Google Groups
> "google-guice" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/google-guice?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"google-guice" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-guice?hl=en.

Reply via email to