Class JerseyProxyResolver
java.lang.Object
org.glassfish.jersey.inject.cdi.se.injector.JerseyProxyResolver
Class working with JAX-RS/Jersey types injected using
Context
annotation and all other types which
can be injected using using other *Param
annotations.
Processed JAX-RS interfaces:
- Author:
- Petr Bouda
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
isPrixiable
(Class<? extends Annotation> scopeAnnotation) Returnstrue
if one of the proxiable annotations is present on the clazz.boolean
isPrixiable
(Injectee injectee) Returnstrue
if one of the proxiable annotations is present on the clazz into which values are injected.noCachedProxy
(Injectee injectee, Supplier<Object> supplier) Returns a proxy (newly created or cached) which is able to call the givenSupplier
.proxy
(Injectee injectee, InjectionResolver resolver) Returns a proxy (newly created or cached) which is able to callInjectionResolver
with the givenInjectee
to get the value in proper scope.
-
Constructor Details
-
JerseyProxyResolver
public JerseyProxyResolver()
-
-
Method Details
-
isPrixiable
Returnstrue
if one of the proxiable annotations is present on the clazz into which values are injected.In these cases the value is not proxiable:
- Class without the annotation
- Class annotated by
RequestScoped
- Class annotated by
RequestScoped
- Parameters:
injectee
- information about the injection point.- Returns:
true
if contains one proxiable annotation at least.
-
isPrixiable
Returnstrue
if one of the proxiable annotations is present on the clazz.In these cases the value is not proxiable:
- Class without the annotation
- Class annotated by
RequestScoped
- Class annotated by
RequestScoped
- Parameters:
scopeAnnotation
- annotation belonging to the scope of the class.- Returns:
true
if contains one proxiable annotation at least.
-
proxy
Returns a proxy (newly created or cached) which is able to callInjectionResolver
with the givenInjectee
to get the value in proper scope.- Parameters:
injectee
- information about the injection point.resolver
- dedicated resolver which find the value.- Returns:
- created proxy which resolve the value in the proper scope.
-
noCachedProxy
Returns a proxy (newly created or cached) which is able to call the givenSupplier
. This method does not cache a result.- Parameters:
injectee
- information about the injection point.supplier
- supplier called using the proxy.- Returns:
- created proxy which resolve the value in the proper scope.
-