Interface ScopeResolver

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      CreationalContext<?> find​(java.lang.Object key)
      Find an existing CreationalContext by key in the current active scope, or return null if no context was found in the given scope with the given key.
      java.lang.annotation.Annotation getAnnotation()
      Returns the annotation this resolver handles.
      boolean isActive()
      Returns true when this scope is currently active, otherwise false.
      void put​(java.lang.Object key, CreationalContext<?> creationalContext)
      Adds a CreationalContext to this scope resolver under the given key.
      void remove​(java.lang.Object key)
      Removes the given key from this scope resolver.
    • Method Detail

      • getAnnotation

        java.lang.annotation.Annotation getAnnotation()
        Returns the annotation this resolver handles. Returns null when the handler handles unscoped injectables.
        Returns:
        the annotation this resolver handles, never null
      • isActive

        boolean isActive()
        Returns true when this scope is currently active, otherwise false.
        Returns:
        true when this scope is currently active, otherwise false
      • remove

        void remove​(java.lang.Object key)
        Removes the given key from this scope resolver.
        Parameters:
        key - an object suitable as a key for use in a map, cannot be null