Class MyPseudoContext

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

    public class MyPseudoContext
    extends Object
    implements jakarta.enterprise.context.spi.AlterableContext
    • Constructor Detail

      • MyPseudoContext

        public MyPseudoContext()
    • 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
      • destroy

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