Package org.apache.maven.impl.di
Class SessionScope
java.lang.Object
org.apache.maven.impl.di.SessionScope
- All Implemented Interfaces:
org.apache.maven.di.Scope
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static classA provider wrapping an existing provider with a cacheprotected static final classScopeState -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected <T> TcreateProxy(org.apache.maven.di.Key<T> key, Supplier<T> unscoped) protected <T> Objectvoidenter()voidexit()protected Class<?>[]getInterfaces(Class<?> superType) protected SessionScope.ScopeStateprotected booleanisTypeAnnotation(Class<? extends Annotation> annotationType) <T> Supplier<T><T> void<T> voidstatic <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
@Nonnull public <T> Supplier<T> scope(@Nonnull org.apache.maven.di.Key<T> key, @Nonnull Supplier<T> unscoped) - Specified by:
scopein interfaceorg.apache.maven.di.Scope
-
createProxy
-
dispatch
protected <T> Object dispatch(org.apache.maven.di.Key<T> key, Supplier<T> unscoped, Method method, Object[] args) throws Throwable - Throws:
Throwable
-
getInterfaces
-
isTypeAnnotation
-
seededKeySupplier
-