Modifier and Type | Class and Description |
---|---|
static class |
JaxrsProviders.ProvidersConfigurator
Configurator which initializes and registers
Providers instance into InjectionManager and
BootstrapBag . |
Constructor and Description |
---|
JaxrsProviders(javax.inject.Provider<MessageBodyWorkers> workers,
javax.inject.Provider<ContextResolvers> resolvers,
javax.inject.Provider<ExceptionMappers> mappers) |
Modifier and Type | Method and Description |
---|---|
<T> ContextResolver<T> |
getContextResolver(Class<T> contextType,
MediaType mediaType) |
<T extends Throwable> |
getExceptionMapper(Class<T> type) |
<T> MessageBodyReader<T> |
getMessageBodyReader(Class<T> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType) |
<T> MessageBodyWriter<T> |
getMessageBodyWriter(Class<T> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType) |
@Inject public JaxrsProviders(@Context javax.inject.Provider<MessageBodyWorkers> workers, @Context javax.inject.Provider<ContextResolvers> resolvers, @Context javax.inject.Provider<ExceptionMappers> mappers)
public <T> MessageBodyReader<T> getMessageBodyReader(Class<T> type, Type genericType, Annotation[] annotations, MediaType mediaType)
getMessageBodyReader
in interface Providers
public <T> MessageBodyWriter<T> getMessageBodyWriter(Class<T> type, Type genericType, Annotation[] annotations, MediaType mediaType)
getMessageBodyWriter
in interface Providers
public <T extends Throwable> ExceptionMapper<T> getExceptionMapper(Class<T> type)
getExceptionMapper
in interface Providers
public <T> ContextResolver<T> getContextResolver(Class<T> contextType, MediaType mediaType)
getContextResolver
in interface Providers
Copyright © 2007-2023, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.