Package org.apache.maven.impl.di
Class SessionScope
java.lang.Object
org.apache.maven.impl.di.SessionScope
- All Implemented Interfaces:
Scope
- Direct Known Subclasses:
SessionScope
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static class
A provider wrapping an existing provider with a cacheprotected static final class
ScopeState -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected <T> T
createProxy
(Key<T> key, Supplier<T> unscoped) protected <T> Object
void
enter()
void
exit()
protected Class<?>[]
getInterfaces
(Class<?> superType) protected SessionScope.ScopeState
protected boolean
isTypeAnnotation
(Class<? extends Annotation> annotationType) <T> Supplier<T>
Scopes a supplier of instances.<T> void
<T> void
static <T> Supplier<T>
seededKeySupplier
(Class<? extends T> clazz)
-
Field Details
-
values
-
-
Constructor Details
-
SessionScope
public SessionScope()
-
-
Method Details
-
enter
public void enter() -
getScopeState
-
exit
public void exit() -
seed
-
seed
-
scope
Description copied from interface:Scope
Scopes a supplier of instances.This method wraps an unscoped instance supplier with scope-specific logic that controls when new instances are created versus when existing instances are reused.
-
createProxy
-
dispatch
protected <T> Object dispatch(Key<T> key, Supplier<T> unscoped, Method method, Object[] args) throws Throwable - Throws:
Throwable
-
getInterfaces
-
isTypeAnnotation
-
seededKeySupplier
-