public class ScopeResolver
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.util.List<MadvocScope> |
allScopes |
protected PetiteContainer |
madpc |
Constructor and Description |
---|
ScopeResolver() |
Modifier and Type | Method and Description |
---|---|
<S extends MadvocScope> |
defaultOrScopeType(java.lang.Class<S> scopeClass)
Lookups the scope instance of given scope annotation.
|
void |
forEachScope(java.util.function.Consumer<MadvocScope> madvocScopeConsumer)
Iterates over all scope instances.
|
void |
forScope(java.lang.Class<? extends MadvocScope> scopeType,
java.util.function.Consumer<MadvocScope> madvocScopeConsumer)
Finds a given scope and consumes it.
|
protected MadvocScope |
getOrInitScope(java.lang.Class<? extends MadvocScope> madvocScopeType)
Performs search for the scope class and returns it's instance.
|
@PetiteInject protected PetiteContainer madpc
protected java.util.List<MadvocScope> allScopes
public <S extends MadvocScope> S defaultOrScopeType(java.lang.Class<S> scopeClass)
protected MadvocScope getOrInitScope(java.lang.Class<? extends MadvocScope> madvocScopeType)
public void forEachScope(java.util.function.Consumer<MadvocScope> madvocScopeConsumer)
public void forScope(java.lang.Class<? extends MadvocScope> scopeType, java.util.function.Consumer<MadvocScope> madvocScopeConsumer)
Copyright © 2003-present Jodd Team