Class JaxrsInjectionTarget<T>

java.lang.Object
org.jboss.resteasy.cdi.JaxrsInjectionTarget<T>
All Implemented Interfaces:
jakarta.enterprise.inject.spi.InjectionTarget<T>, jakarta.enterprise.inject.spi.Producer<T>

public class JaxrsInjectionTarget<T> extends Object implements jakarta.enterprise.inject.spi.InjectionTarget<T>
This implementation of InjectionTarget is a wrapper that allows JAX-RS property injection to be performed just after CDI injection.
Author:
Jozef Hartinger
  • Constructor Details

    • JaxrsInjectionTarget

      public JaxrsInjectionTarget(jakarta.enterprise.inject.spi.InjectionTarget<T> delegate, Class<T> clazz)
  • Method Details

    • inject

      public void inject(T instance, jakarta.enterprise.context.spi.CreationalContext<T> ctx)
      Specified by:
      inject in interface jakarta.enterprise.inject.spi.InjectionTarget<T>
    • postConstruct

      public void postConstruct(T instance)
      Specified by:
      postConstruct in interface jakarta.enterprise.inject.spi.InjectionTarget<T>
    • preDestroy

      public void preDestroy(T instance)
      Specified by:
      preDestroy in interface jakarta.enterprise.inject.spi.InjectionTarget<T>
    • dispose

      public void dispose(T instance)
      Specified by:
      dispose in interface jakarta.enterprise.inject.spi.Producer<T>
    • getInjectionPoints

      public Set<jakarta.enterprise.inject.spi.InjectionPoint> getInjectionPoints()
      Specified by:
      getInjectionPoints in interface jakarta.enterprise.inject.spi.Producer<T>
    • produce

      public T produce(jakarta.enterprise.context.spi.CreationalContext<T> ctx)
      Specified by:
      produce in interface jakarta.enterprise.inject.spi.Producer<T>