Class SingletonScopeResolver

    • Constructor Summary

      Constructors 
      Constructor Description
      SingletonScopeResolver​(java.lang.annotation.Annotation singleton)
      Constructs a new instance.
    • Constructor Detail

      • SingletonScopeResolver

        public SingletonScopeResolver​(java.lang.annotation.Annotation singleton)
        Constructs a new instance.
        Parameters:
        singleton - a singleton annotation to use, cannot be null
    • Method Detail

      • getAnnotation

        public java.lang.annotation.Annotation getAnnotation()
        Description copied from interface: ScopeResolver
        Returns the annotation this resolver handles. Returns null when the handler handles unscoped injectables.
        Returns:
        the annotation this resolver handles, never null
      • getCurrentScope

        protected java.lang.String getCurrentScope()
        Description copied from class: AbstractScopeResolver
        Returns the current scope, or null if there is no current scope.
        Specified by:
        getCurrentScope in class AbstractScopeResolver<java.lang.String>
        Returns:
        the current scope, or null if there is no current scope