public final class ResourceUtils extends Object implements Serializable
| Modifier and Type | Method and Description |
|---|---|
static <R> Optional<R> |
lookupResource(Class<?> caller,
Class<R> resourceType,
javax.ws.rs.ext.Providers providers)
Lookup a resource of given
resourceType type, either using a suitable ContextResolver if
providers is not null and a ContextResolver for given resourceType
is available, or trying to obtain the resource from Context using given resourceType as
context resource key. |
public static <R> Optional<R> lookupResource(Class<?> caller, Class<R> resourceType, javax.ws.rs.ext.Providers providers)
resourceType type, either using a suitable ContextResolver if
providers is not null and a ContextResolver for given resourceType
is available, or trying to obtain the resource from Context using given resourceType as
context resource key.R - Resource typecaller - Caller classresourceType - Resource type to lookup (not null)providers - JAX-RS Providers, if availableCopyright © 2019 The Holon Platform. All rights reserved.