Class SingletonScope
java.lang.Object
be.imgn.inject.context.SingletonScope
- All Implemented Interfaces:
Scope
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionClass<? extends Annotation> Returns the scoping annotation this scope handles.<T> Provider<T> Returnsproviderwrapped with this scope's lifecycle.
-
Constructor Details
-
SingletonScope
public SingletonScope()Creates the scope. Instantiated byServiceLoader.
-
-
Method Details
-
annotationType
Description copied from interface:ScopeReturns the scoping annotation this scope handles.- Specified by:
annotationTypein interfaceScope- Returns:
- the scoping annotation this scope handles
-
wrap
Description copied from interface:ScopeReturnsproviderwrapped with this scope's lifecycle.
-