Class HK2ContextBridge

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

    public class HK2ContextBridge
    extends Object
    implements jakarta.enterprise.context.spi.Context
    This is an implementation of a CDI context that is put into CDI which will handle all of the hk2 scope/context pairs
    Author:
    jwells
    • Method Detail

      • get

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

        public <T> T get​(jakarta.enterprise.context.spi.Contextual<T> arg0,
                         jakarta.enterprise.context.spi.CreationalContext<T> arg1)
        Specified by:
        get in interface jakarta.enterprise.context.spi.Context
      • getScope

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

        public boolean isActive()
        Specified by:
        isActive in interface jakarta.enterprise.context.spi.Context