public class JaxrsProviders extends Object implements jakarta.ws.rs.ext.Providers
Providers
contract.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> jakarta.ws.rs.ext.ContextResolver<T> |
getContextResolver(Class<T> contextType,
jakarta.ws.rs.core.MediaType mediaType) |
<T extends Throwable> |
getExceptionMapper(Class<T> type) |
<T> jakarta.ws.rs.ext.MessageBodyReader<T> |
getMessageBodyReader(Class<T> type,
Type genericType,
Annotation[] annotations,
jakarta.ws.rs.core.MediaType mediaType) |
<T> jakarta.ws.rs.ext.MessageBodyWriter<T> |
getMessageBodyWriter(Class<T> type,
Type genericType,
Annotation[] annotations,
jakarta.ws.rs.core.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> jakarta.ws.rs.ext.MessageBodyReader<T> getMessageBodyReader(Class<T> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType)
getMessageBodyReader
in interface jakarta.ws.rs.ext.Providers
public <T> jakarta.ws.rs.ext.MessageBodyWriter<T> getMessageBodyWriter(Class<T> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType)
getMessageBodyWriter
in interface jakarta.ws.rs.ext.Providers
public <T extends Throwable> jakarta.ws.rs.ext.ExceptionMapper<T> getExceptionMapper(Class<T> type)
getExceptionMapper
in interface jakarta.ws.rs.ext.Providers
public <T> jakarta.ws.rs.ext.ContextResolver<T> getContextResolver(Class<T> contextType, jakarta.ws.rs.core.MediaType mediaType)
getContextResolver
in interface jakarta.ws.rs.ext.Providers
Copyright © 2007-2021, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.