Interface ValueParamProvider
-
@Contract @ConstrainedTo(SERVER) public interface ValueParamProvider
Parameter value factory SPI.- Author:
- Marek Potociar, Michal Gajdos
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
ValueParamProvider.Priority
Enumeration of priorities for providers (e.g.static interface
ValueParamProvider.PriorityType
Priorities are intended to be used as a means to determine the order in which objects are considered whether they are suitable for a particular action or not (e.g.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ValueParamProvider.PriorityType
getPriority()
Gets the priority of this provider.Function<ContainerRequest,?>
getValueProvider(Parameter parameter)
Get an injected value provider for the parameter.
-
-
-
Method Detail
-
getValueProvider
Function<ContainerRequest,?> getValueProvider(Parameter parameter)
Get an injected value provider for the parameter. May returnnull
in case the parameter is not supported by the value provider.- Parameters:
parameter
- parameter requesting the value provider instance.- Returns:
- injected parameter value provider. Returns
null
if parameter is not supported.
-
getPriority
ValueParamProvider.PriorityType getPriority()
Gets the priority of this provider.- Returns:
- the priority of this provider.
- See Also:
ValueParamProvider.PriorityType
,ValueParamProvider.Priority
-
-