Package com.vaadin.cdi.context
Class ContextWrapper
java.lang.Object
com.vaadin.cdi.context.ContextWrapper
- All Implemented Interfaces:
jakarta.enterprise.context.spi.AlterableContext,jakarta.enterprise.context.spi.Context
public class ContextWrapper
extends Object
implements jakarta.enterprise.context.spi.AlterableContext
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.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddestroy(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()booleanisActive()
-
Constructor Details
-
ContextWrapper
-
-
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
-