guice 7.0.0
com.google.inject
Singleton
Top
Description
Methods
com.google.inject
public
@Interface Singleton
extends
Annotation
Annotations
@Target
:
TYPE
,
METHOD
@Retention
:
RUNTIME
@ScopeAnnotation
Static Imports
java.
lang.
annotation.
RetentionPolicy.
RUNTIME
Apply this to implementation classes when you want only one instance (per
Injector
) to be reused for all injections for that binding.
Author
[email protected]
(Bob Lee)
Method Summary
Inherited from
java.lang.annotation.Annotation
:
annotationType
equals
hashCode
toString