Class ExtendedScopeResolver

  • All Implemented Interfaces:
    ScopeResolver

    public class ExtendedScopeResolver
    extends java.lang.Object
    implements ScopeResolver
    Wrapper for ScopeResolver with additional information useful for the internal workings of the injector framework.
    • Constructor Detail

      • ExtendedScopeResolver

        public ExtendedScopeResolver​(ScopeResolver delegate,
                                     boolean isPseudoScope,
                                     boolean isDependentScope)
        Constructs a new instance.
        Parameters:
        delegate - a delegate ScopeResolver, cannot be null
        isPseudoScope - whether the delegate represents a pseudo-scope
        isDependentScope - whether the delegate represents the dependent scope
    • Method Detail

      • isPseudoScope

        public boolean isPseudoScope()
        Returns whether this ScopeResolver represents a pseudo-scope.
        Returns:
        true if it represents a pseudo-scope, otherwise false
      • isDependentScope

        public boolean isDependentScope()
        Returns whether this ScopeResolver represents the dependent pseudo-scope.
        Returns:
        true if it represents the dependent pseudo-scope, otherwise false
      • get

        public <T> T get​(java.lang.Object key,
                         CreationalContext<T> creationalContext)
                  throws org.int4.dirk.api.scope.ScopeNotActiveException,
                         java.lang.Exception
        Specified by:
        get in interface ScopeResolver
        Throws:
        org.int4.dirk.api.scope.ScopeNotActiveException
        java.lang.Exception
      • remove

        public void remove​(java.lang.Object key)
        Specified by:
        remove in interface ScopeResolver