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(org.glassfish.jersey.internal.inject.Injectee injectee)
Returns
true if one of the proxiable annotations is present on the clazz into which values are injected. |
Object |
noCachedProxy(org.glassfish.jersey.internal.inject.Injectee injectee,
Supplier<Object> supplier)
Returns a proxy (newly created or cached) which is able to call the given
Supplier . |
Object |
proxy(org.glassfish.jersey.internal.inject.Injectee injectee,
org.glassfish.jersey.internal.inject.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(org.glassfish.jersey.internal.inject.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:
RequestScoped
RequestScoped
injectee
- 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:
RequestScoped
RequestScoped
scopeAnnotation
- annotation belonging to the scope of the class.true
if contains one proxiable annotation at least.public Object proxy(org.glassfish.jersey.internal.inject.Injectee injectee, org.glassfish.jersey.internal.inject.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(org.glassfish.jersey.internal.inject.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-2017, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.