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 classValueParamProvider.PriorityEnumeration of priorities for providers (e.g.static interfaceValueParamProvider.PriorityTypePriorities 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.PriorityTypegetPriority()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 returnnullin case the parameter is not supported by the value provider.- Parameters:
parameter- parameter requesting the value provider instance.- Returns:
- injected parameter value provider. Returns
nullif 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
-
-