Skip to content

Can't bind annotated Injector #433

@gissuebot

Description

@gissuebot

From zorzella on September 30, 2009 12:29:24

In GuiceBerry, it's common for tests to want to access the server's injector. For
that, I want to be able to do something like:

bind(Injector.class).annotatedWith(ServerSide.class).toInstance(serverInjector);

Unfortunately, Guice currently arbitrarily forbids binding an Injector, even if
annotated.

Original issue: http://code.google.com/p/google-guice/issues/detail?id=433

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions