Class GenericInjectionManagerStore

java.lang.Object
org.glassfish.jersey.ext.cdi1x.internal.GenericInjectionManagerStore
All Implemented Interfaces:
org.glassfish.jersey.ext.cdi1x.internal.spi.InjectionManagerStore, org.glassfish.jersey.ext.cdi1x.internal.spi.InjectionTargetListener

public abstract class GenericInjectionManagerStore extends Object implements org.glassfish.jersey.ext.cdi1x.internal.spi.InjectionManagerStore, org.glassfish.jersey.ext.cdi1x.internal.spi.InjectionTargetListener
Generic injection manager store that allows multiple injection managers to run in parallel. lookupInjectionManager() method must be implemented that shall be utilized at runtime in the case that more than a single injection manager has been registered.
Since:
2.20
Author:
Jakub Podlesak
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.glassfish.jersey.internal.inject.InjectionManager
    Obtain the effective injection manager.
    abstract org.glassfish.jersey.internal.inject.InjectionManager
    CDI container specific method to obtain the actual injection manager belonging to the Jersey application where the current HTTP requests is being processed.
    void
    notify(org.glassfish.jersey.ext.cdi1x.internal.spi.InjectionManagerInjectedTarget target)
    Notify the HK2 locator manager about new injection target being processed.
    void
    registerInjectionManager(org.glassfish.jersey.internal.inject.InjectionManager injectionManager)
    Register a new injection manager with this manager.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • GenericInjectionManagerStore

      public GenericInjectionManagerStore()
  • Method Details

    • registerInjectionManager

      public void registerInjectionManager(org.glassfish.jersey.internal.inject.InjectionManager injectionManager)
      Description copied from interface: org.glassfish.jersey.ext.cdi1x.internal.spi.InjectionManagerStore
      Register a new injection manager with this manager.
      Specified by:
      registerInjectionManager in interface org.glassfish.jersey.ext.cdi1x.internal.spi.InjectionManagerStore
      Parameters:
      injectionManager - injection manager to be registered.
    • getEffectiveInjectionManager

      public org.glassfish.jersey.internal.inject.InjectionManager getEffectiveInjectionManager()
      Description copied from interface: org.glassfish.jersey.ext.cdi1x.internal.spi.InjectionManagerStore
      Obtain the effective injection manager. The implementations are supposed to decide which of the registered injection managers is the currently effective locator. The decision can be based, for example, on current Servlet context (if the application is deployed on Servlet container).
      Specified by:
      getEffectiveInjectionManager in interface org.glassfish.jersey.ext.cdi1x.internal.spi.InjectionManagerStore
      Returns:
      currently effective injection manager.
    • lookupInjectionManager

      public abstract org.glassfish.jersey.internal.inject.InjectionManager lookupInjectionManager()
      CDI container specific method to obtain the actual injection manager belonging to the Jersey application where the current HTTP requests is being processed.
      Returns:
      actual injection manager.
    • notify

      public void notify(org.glassfish.jersey.ext.cdi1x.internal.spi.InjectionManagerInjectedTarget target)
      Description copied from interface: org.glassfish.jersey.ext.cdi1x.internal.spi.InjectionTargetListener
      Notify the HK2 locator manager about new injection target being processed.
      Specified by:
      notify in interface org.glassfish.jersey.ext.cdi1x.internal.spi.InjectionTargetListener
      Parameters:
      target - processed injection target.