public class TransactionContext extends Object implements io.quarkus.arc.InjectableContext
Context class which defines the TransactionScoped context.| Constructor and Description |
|---|
TransactionContext() |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy() |
void |
destroy(javax.enterprise.context.spi.Contextual<?> contextual) |
<T> T |
get(javax.enterprise.context.spi.Contextual<T> contextual) |
<T> T |
get(javax.enterprise.context.spi.Contextual<T> contextual,
javax.enterprise.context.spi.CreationalContext<T> creationalContext) |
Class<? extends Annotation> |
getScope() |
io.quarkus.arc.InjectableContext.ContextState |
getState() |
boolean |
isActive()
The transaction scoped context is active when a transaction is active.
|
public void destroy()
destroy in interface io.quarkus.arc.InjectableContextpublic void destroy(javax.enterprise.context.spi.Contextual<?> contextual)
destroy in interface javax.enterprise.context.spi.AlterableContextpublic io.quarkus.arc.InjectableContext.ContextState getState()
getState in interface io.quarkus.arc.InjectableContextpublic Class<? extends Annotation> getScope()
getScope in interface javax.enterprise.context.spi.Contextpublic <T> T get(javax.enterprise.context.spi.Contextual<T> contextual,
javax.enterprise.context.spi.CreationalContext<T> creationalContext)
get in interface javax.enterprise.context.spi.Contextpublic <T> T get(javax.enterprise.context.spi.Contextual<T> contextual)
get in interface javax.enterprise.context.spi.Contextpublic boolean isActive()
isActive in interface javax.enterprise.context.spi.ContextCopyright © 2021 JBoss by Red Hat. All rights reserved.