Sign in
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 (per
Injector
) to be reused for all injections for that binding.
Author:
crazybob@google.com (Bob Lee)