Class TransactionContext

java.lang.Object
io.quarkus.narayana.jta.runtime.context.TransactionContext
All Implemented Interfaces:
io.quarkus.arc.InjectableContext, jakarta.enterprise.context.spi.AlterableContext, jakarta.enterprise.context.spi.Context

public class TransactionContext extends Object implements io.quarkus.arc.InjectableContext
Context class which defines the TransactionScoped context.
  • Nested Class Summary

    Nested classes/interfaces inherited from interface io.quarkus.arc.InjectableContext

    io.quarkus.arc.InjectableContext.ContextState
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    void
    destroy(jakarta.enterprise.context.spi.Contextual<?> contextual)
     
    <T> T
    get(jakarta.enterprise.context.spi.Contextual<T> contextual)
     
    <T> T
    get(jakarta.enterprise.context.spi.Contextual<T> contextual, jakarta.enterprise.context.spi.CreationalContext<T> creationalContext)
     
    Class<? extends Annotation>
     
    io.quarkus.arc.InjectableContext.ContextState
     
    boolean
    The transaction scoped context is active when a transaction is active.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface io.quarkus.arc.InjectableContext

    destroy, getIfActive, getStateIfActive, isNormal
  • Constructor Details

    • TransactionContext

      public TransactionContext()
  • Method Details

    • destroy

      public void destroy()
      Specified by:
      destroy in interface io.quarkus.arc.InjectableContext
    • destroy

      public void destroy(jakarta.enterprise.context.spi.Contextual<?> contextual)
      Specified by:
      destroy in interface jakarta.enterprise.context.spi.AlterableContext
    • getState

      public io.quarkus.arc.InjectableContext.ContextState getState()
      Specified by:
      getState in interface io.quarkus.arc.InjectableContext
    • getScope

      public Class<? extends Annotation> getScope()
      Specified by:
      getScope in interface jakarta.enterprise.context.spi.Context
    • get

      public <T> T get(jakarta.enterprise.context.spi.Contextual<T> contextual, jakarta.enterprise.context.spi.CreationalContext<T> creationalContext)
      Specified by:
      get in interface jakarta.enterprise.context.spi.Context
    • get

      public <T> T get(jakarta.enterprise.context.spi.Contextual<T> contextual)
      Specified by:
      get in interface jakarta.enterprise.context.spi.Context
    • isActive

      public boolean isActive()
      The transaction scoped context is active when a transaction is active.
      Specified by:
      isActive in interface jakarta.enterprise.context.spi.Context