Package com.google.inject.spi
Annotation Type Toolable
-
@Target(METHOD) @Retention(RUNTIME) @Documented public @interface Toolable
Instructs anInjector
running inStage.TOOL
that a method should be injected. This is typically useful for for extensions to Guice that perform additional validation in an injected method or field. This only applies to objects that are already constructed when bindings are created (ie., something bound usingtoProvider
,toInstance
, orrequestInjection
.- Since:
- 3.0
- Author:
- sberlin@gmail.com (Sam Berlin)