Package com.vaadin.quarkus.context
Class UIContextWrapper
java.lang.Object
com.vaadin.quarkus.context.UIContextWrapper
- All Implemented Interfaces:
io.quarkus.arc.InjectableContext,jakarta.enterprise.context.spi.AlterableContext,jakarta.enterprise.context.spi.Context
Used to bind multiple scope annotations to a single context. Will delegate
all context-related operations to it's underlying instance, apart from
getting the scope of the context.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.quarkus.arc.InjectableContext
io.quarkus.arc.InjectableContext.ContextState -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddestroy()voiddestroy(jakarta.enterprise.context.spi.Contextual<?> contextual) <T> Tget(jakarta.enterprise.context.spi.Contextual<T> component) <T> Tget(jakarta.enterprise.context.spi.Contextual<T> component, jakarta.enterprise.context.spi.CreationalContext<T> creationalContext) Class<? extends Annotation> getScope()io.quarkus.arc.InjectableContext.ContextStategetState()booleanisActive()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.quarkus.arc.InjectableContext
destroy, getIfActive, getStateIfActive, isNormal
-
Constructor Details
-
UIContextWrapper
public UIContextWrapper()
-
-
Method Details
-
getScope
- Specified by:
getScopein interfacejakarta.enterprise.context.spi.Context
-
get
public <T> T get(jakarta.enterprise.context.spi.Contextual<T> component, jakarta.enterprise.context.spi.CreationalContext<T> creationalContext) - Specified by:
getin interfacejakarta.enterprise.context.spi.Context
-
get
public <T> T get(jakarta.enterprise.context.spi.Contextual<T> component) - Specified by:
getin interfacejakarta.enterprise.context.spi.Context
-
isActive
public boolean isActive()- Specified by:
isActivein interfacejakarta.enterprise.context.spi.Context
-
destroy
public void destroy(jakarta.enterprise.context.spi.Contextual<?> contextual) - Specified by:
destroyin interfacejakarta.enterprise.context.spi.AlterableContext
-
destroy
public void destroy()- Specified by:
destroyin interfaceio.quarkus.arc.InjectableContext
-
getState
public io.quarkus.arc.InjectableContext.ContextState getState()- Specified by:
getStatein interfaceio.quarkus.arc.InjectableContext
-