google / google/guice

Can't bind annotated Injector

Open
#433 4 comments 0 reactions 0 assignees View on GitHub
imported
Dominant language
Java
Stars
12.7k
Forks
1.7k
Avg merge
11m
Merged PRs (30d)
2

Description

_From [zorzella](https://code.google.com/u/117480957020302471907/) 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_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.