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 TypeMethodDescriptionbooleanisPrixiable(Class<? extends Annotation> scopeAnnotation) Returnstrueif one of the proxiable annotations is present on the clazz.booleanisPrixiable(Injectee injectee) Returnstrueif 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 callInjectionResolverwith the givenInjecteeto get the value in proper scope.
-
Constructor Details
-
JerseyProxyResolver
public JerseyProxyResolver()
-
-
Method Details
-
isPrixiable
Returnstrueif 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:
trueif contains one proxiable annotation at least.
-
isPrixiable
Returnstrueif 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:
trueif contains one proxiable annotation at least.
-
proxy
Returns a proxy (newly created or cached) which is able to callInjectionResolverwith the givenInjecteeto 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.
-