By default, when used for injection of parameter values, a selected {@code ParamConverter}instance MUST be used eagerly by a JAX-RS runtime to convert any {@link DefaultValue default value} in the resource or provider model, that is during the application deployment,before any value – default or otherwise – is actually required. This conversion strategy ensures that any errors in the default values are reported as early as possible. This default behavior may be overridden by annotating the {@code ParamConverter}implementation class with a {@link Lazy @Lazy} annotation. In such case any defaultvalue conversion delegated to the {@code @Lazy}-annotated converter will be deferred to a latest possible moment (i.e. until the injection of such default value is required).
NOTE: A service implementing this contract is not recognized as a registrable JAX-RS extension provider. Instead, a {@link ParamConverterProvider} instanceresponsible for providing {@code ParamConverter} instances has to be registeredas one of the JAX-RS extension providers.
@param < T> the supported Java type convertible to/from a {@code String} format. @author Marek Potociar
|
|
|
|