|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TypeListener
Listens for Guice to encounter injectable types. If a given type has its constructor injected in one situation but only its methods and fields injected in another, Guice will notify this listener once.
Useful for extra type checking, registering injection listeners, and binding method interceptors.
Method Summary | ||
---|---|---|
|
hear(TypeLiteral<I> type,
TypeEncounter<I> encounter)
Invoked when Guice encounters a new type eligible for constructor or members injection. |
Method Detail |
---|
<I> void hear(TypeLiteral<I> type, TypeEncounter<I> encounter)
I
- the injectable typetype
- encountered by Guiceencounter
- context of this encounter, enables reporting errors, registering injection
listeners and binding method interceptors for type
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |