public class ContextResolverFactory extends Object implements ContextResolvers
ContextResolver instances.| Modifier and Type | Class and Description |
|---|---|
static class |
ContextResolverFactory.Binder
Injection binder defining
ContextResolverFactory and
ContextResolvers bindings. |
| Constructor and Description |
|---|
ContextResolverFactory(org.glassfish.hk2.api.ServiceLocator locator)
Create new context resolver factory backed by the supplied
HK2 service locator. |
@Inject public ContextResolverFactory(org.glassfish.hk2.api.ServiceLocator locator)
HK2 service locator.locator - HK2 service locator.public <T> javax.ws.rs.ext.ContextResolver<T> resolve(Type t, javax.ws.rs.core.MediaType m)
ContextResolversContextResolver<T> instance for a given type
and media type.resolve in interface ContextResolversT - Java type produced by the context resolver.t - type supported by the context resolver.m - media type supported by the context resolver.null.Copyright © 2007-2014, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.