Package org.int4.dirk.library
Class SingletonScopeResolver
- java.lang.Object
-
- org.int4.dirk.spi.scope.AbstractScopeResolver<java.lang.String>
-
- org.int4.dirk.library.SingletonScopeResolver
-
- All Implemented Interfaces:
ScopeResolver
public class SingletonScopeResolver extends AbstractScopeResolver<java.lang.String>
Scope resolver for singleton scope.
-
-
Constructor Summary
Constructors Constructor Description SingletonScopeResolver(java.lang.annotation.Annotation singleton)Constructs a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.annotation.AnnotationgetAnnotation()Returns the annotation this resolver handles.protected java.lang.StringgetCurrentScope()Returns the current scope, ornullif there is no current scope.-
Methods inherited from class org.int4.dirk.spi.scope.AbstractScopeResolver
destroyScope, get, isActive, remove
-
-
-
-
Method Detail
-
getAnnotation
public java.lang.annotation.Annotation getAnnotation()
Description copied from interface:ScopeResolverReturns the annotation this resolver handles. Returnsnullwhen the handler handles unscoped injectables.- Returns:
- the annotation this resolver handles, never
null
-
getCurrentScope
protected java.lang.String getCurrentScope()
Description copied from class:AbstractScopeResolverReturns the current scope, ornullif there is no current scope.- Specified by:
getCurrentScopein classAbstractScopeResolver<java.lang.String>- Returns:
- the current scope, or
nullif there is no current scope
-
-