Interface ManagedContext

  • All Superinterfaces:
    jakarta.enterprise.context.spi.AlterableContext, jakarta.enterprise.context.spi.Context, InjectableContext

    public interface ManagedContext
    extends InjectableContext
    A context implementing this interface can be manually managed. It can be activated with certain state hence allowing for context propagation and then deactivated on demand.
    Author:
    Martin Kouba
    • Method Detail

      • activate

        default void activate()
        Activate the context with no initial state.
      • deactivate

        void deactivate()
        Deactivate the context - do not destoy existing contextual instances.
      • terminate

        default void terminate()
        Destroy and deactivate the context.