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(jakarta.inject.Provider<MessageBodyWorkers> workers,
jakarta.inject.Provider<ContextResolvers> resolvers,
jakarta.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 jakarta.inject.Provider<MessageBodyWorkers> workers, @Context jakarta.inject.Provider<ContextResolvers> resolvers, @Context jakarta.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.