Class CompensationContext

  • All Implemented Interfaces:
    jakarta.enterprise.context.spi.Context

    public class CompensationContext
    extends Object
    implements jakarta.enterprise.context.spi.Context
    • Constructor Detail

      • CompensationContext

        public CompensationContext()
    • Method Detail

      • 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()
        Specified by:
        isActive in interface jakarta.enterprise.context.spi.Context
      • setTxContextToExtend

        public static void setTxContextToExtend​(Object currentTX)
      • close

        public static void close​(Object currentTX)
        Garbage collect the beans. Call when the context is closed and can't be used again.
        Parameters:
        currentTX - the Transaction Context associated with this context.