Package com.google.inject
Annotation Type Singleton
-
@Target({TYPE,METHOD}) @Retention(RUNTIME) public @interface Singleton
Apply this to implementation classes when you want only one instance (perInjector
) to be reused for all injections for that binding.