Package org.int4.dirk.core.definition
Class ExtendedScopeResolver
- java.lang.Object
-
- org.int4.dirk.core.definition.ExtendedScopeResolver
-
- All Implemented Interfaces:
ScopeResolver
public class ExtendedScopeResolver extends java.lang.Object implements ScopeResolver
Wrapper forScopeResolverwith additional information useful for the internal workings of the injector framework.
-
-
Constructor Summary
Constructors Constructor Description ExtendedScopeResolver(ScopeResolver delegate, boolean isPseudoScope, boolean isDependentScope)Constructs a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> Tget(java.lang.Object key, CreationalContext<T> creationalContext)java.lang.annotation.AnnotationgetAnnotation()booleanisActive()booleanisDependentScope()Returns whether thisScopeResolverrepresents the dependent pseudo-scope.booleanisPseudoScope()Returns whether thisScopeResolverrepresents a pseudo-scope.voidremove(java.lang.Object key)
-
-
-
Constructor Detail
-
ExtendedScopeResolver
public ExtendedScopeResolver(ScopeResolver delegate, boolean isPseudoScope, boolean isDependentScope)
Constructs a new instance.- Parameters:
delegate- a delegateScopeResolver, cannot benullisPseudoScope- whether the delegate represents a pseudo-scopeisDependentScope- whether the delegate represents the dependent scope
-
-
Method Detail
-
isPseudoScope
public boolean isPseudoScope()
Returns whether thisScopeResolverrepresents a pseudo-scope.- Returns:
trueif it represents a pseudo-scope, otherwisefalse
-
isDependentScope
public boolean isDependentScope()
Returns whether thisScopeResolverrepresents the dependent pseudo-scope.- Returns:
trueif it represents the dependent pseudo-scope, otherwisefalse
-
getAnnotation
public java.lang.annotation.Annotation getAnnotation()
- Specified by:
getAnnotationin interfaceScopeResolver
-
isActive
public boolean isActive()
- Specified by:
isActivein interfaceScopeResolver
-
get
public <T> T get(java.lang.Object key, CreationalContext<T> creationalContext) throws org.int4.dirk.api.scope.ScopeNotActiveException, java.lang.Exception- Specified by:
getin interfaceScopeResolver- Throws:
org.int4.dirk.api.scope.ScopeNotActiveExceptionjava.lang.Exception
-
remove
public void remove(java.lang.Object key)
- Specified by:
removein interfaceScopeResolver
-
-