public class JerseyProxyResolver extends Object
Context annotation and all other types which
can be injected using using other *Param annotations.
Processed JAX-RS interfaces:
UriInfo,
Request,
HttpHeaders,
SecurityContext,
Configuration,
not proxiable because is registered as a singleton.,
Providers| Constructor and Description |
|---|
JerseyProxyResolver() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isPrixiable(Class<? extends Annotation> scopeAnnotation)
Returns
true if one of the proxiable annotations is present on the clazz. |
boolean |
isPrixiable(Injectee injectee)
Returns
true if one of the proxiable annotations is present on the clazz into which values are injected. |
Object |
noCachedProxy(Injectee injectee,
Supplier<Object> supplier)
Returns a proxy (newly created or cached) which is able to call the given
Supplier. |
Object |
proxy(Injectee injectee,
InjectionResolver resolver)
Returns a proxy (newly created or cached) which is able to call
InjectionResolver with the given Injectee
to get the value in proper scope. |
public boolean isPrixiable(Injectee injectee)
true if one of the proxiable annotations is present on the clazz into which values are injected.
In these cases the value is not proxiable:
RequestScopedRequestScopedinjectee - information about the injection point.true if contains one proxiable annotation at least.public boolean isPrixiable(Class<? extends Annotation> scopeAnnotation)
true if one of the proxiable annotations is present on the clazz.
In these cases the value is not proxiable:
RequestScopedRequestScopedscopeAnnotation - annotation belonging to the scope of the class.true if contains one proxiable annotation at least.public Object proxy(Injectee injectee, InjectionResolver resolver)
InjectionResolver with the given Injectee
to get the value in proper scope.injectee - information about the injection point.resolver - dedicated resolver which find the value.public Object noCachedProxy(Injectee injectee, Supplier<Object> supplier)
Supplier. This method does not cache
a result.injectee - information about the injection point.supplier - supplier called using the proxy.Copyright © 2007-2024, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.