Class ForwardingContext

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

    public abstract class ForwardingContext
    extends Object
    implements jakarta.enterprise.context.spi.Context
    Forwarding implementation of Context
    Author:
    Jozef Hartinger
    • Constructor Detail

      • ForwardingContext

        public ForwardingContext()
    • Method Detail

      • delegate

        protected abstract jakarta.enterprise.context.spi.Context delegate()
      • 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
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • unwrap

        public static jakarta.enterprise.context.spi.Context unwrap​(jakarta.enterprise.context.spi.Context context)