@Priority(value=200) public class CdiComponentProvider extends Object implements ComponentProvider, javax.enterprise.inject.spi.Extension
Jersey component provider to serve CDI beans
obtained from the actual CDI bean manager.
To properly inject JAX-RS/Jersey managed beans into CDI, it also
serves as a CDI Extension, that intercepts CDI injection targets.| Modifier and Type | Class and Description |
|---|---|
static class |
CdiComponentProvider.CdiDefaultAnnotation
Auxiliary annotation for mocked beans used to cover Jersey/HK2 injected injection points.
|
static class |
CdiComponentProvider.JaxRsParamProducer
CDI producer for CDI bean constructor String parameters, that should be injected by JAX-RS.
|
| Modifier and Type | Field and Description |
|---|---|
static String |
CDI_CLASS_ANALYZER
Name to be used when binding CDI injectee skipping class analyzer to HK2 service injection manager.
|
| Constructor and Description |
|---|
CdiComponentProvider() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
bind(Class<?> clazz,
Set<Class<?>> providerContracts) |
void |
done() |
void |
initialize(org.glassfish.jersey.internal.inject.InjectionManager injectionManager) |
void |
processAnnotatedType(javax.enterprise.inject.spi.ProcessAnnotatedType processAnnotatedType) |
public static final String CDI_CLASS_ANALYZER
public void initialize(org.glassfish.jersey.internal.inject.InjectionManager injectionManager)
initialize in interface ComponentProviderpublic boolean bind(Class<?> clazz, Set<Class<?>> providerContracts)
bind in interface ComponentProviderpublic void done()
done in interface ComponentProviderpublic void processAnnotatedType(javax.enterprise.inject.spi.ProcessAnnotatedType processAnnotatedType)
Copyright © 2007-2019, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.