Class InjectExtension

  • All Implemented Interfaces:
    jakarta.enterprise.inject.spi.Extension

    class InjectExtension
    extends java.lang.Object
    implements jakarta.enterprise.inject.spi.Extension

    A utility class that makes sure @Inject can be used instead of @Context for the Jakarta REST API classes and interfaces, such as for Configuration, or Providers.

    Note that ContextResolver can be injected using @Context, but the Jakarta REST specification does not require the implementation to be capable of doing so. Since ContextResolver is parametrized type, the injection using CDI's is not supported. The ContextResolver can be obtained from Providers.

    • Constructor Summary

      Constructors 
      Constructor Description
      InjectExtension()  
    • Method Summary

      • Methods inherited from class java.lang.Object

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

      • InjectExtension

        InjectExtension()