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 and Description |
|---|
InjectExtension() |
Copyright © 2007-2024,Oracleand/or its affiliates.All Rights Reserved. Use is subject to license terms.