public abstract class AbstractValueParamProvider extends Object implements ValueParamProvider
MultivaluedParameterExtractorProvider
to extract parameter
values from the supplied multivalued
parameter map
.ValueParamProvider.Priority, ValueParamProvider.PriorityType
Modifier | Constructor and Description |
---|---|
protected |
AbstractValueParamProvider(jakarta.inject.Provider<MultivaluedParameterExtractorProvider> mpep,
Parameter.Source... compatibleSources)
Initialize the provider.
|
Modifier and Type | Method and Description |
---|---|
protected abstract Function<ContainerRequest,?> |
createValueProvider(Parameter parameter)
Create a value provider for the parameter.
|
protected MultivaluedParameterExtractor<?> |
get(Parameter parameter)
Get a parameter extractor.
|
ValueParamProvider.PriorityType |
getPriority()
Gets the priority of this provider.
|
Function<ContainerRequest,?> |
getValueProvider(Parameter parameter)
Get an injected value provider for the parameter.
|
protected AbstractValueParamProvider(jakarta.inject.Provider<MultivaluedParameterExtractorProvider> mpep, Parameter.Source... compatibleSources)
mpep
- multivalued map parameter extractor provider.compatibleSources
- compatible parameter sources.protected final MultivaluedParameterExtractor<?> get(Parameter parameter)
multivalued parameter map
.parameter
- parameter supported by the returned extractor.protected abstract Function<ContainerRequest,?> createValueProvider(Parameter parameter)
null
in case
the parameter is not supported by the value provider.parameter
- parameter requesting the value provider instance.null
if parameter is not supported.public final Function<ContainerRequest,?> getValueProvider(Parameter parameter)
null
in case the parameter is not supported by the value provider.getValueProvider
in interface ValueParamProvider
parameter
- parameter requesting the value provider instance.null
if parameter
is not supported.public ValueParamProvider.PriorityType getPriority()
ValueParamProvider
getPriority
in interface ValueParamProvider
ValueParamProvider.PriorityType
,
ValueParamProvider.Priority
Copyright © 2007-2024, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.