Interface MethodParameterMappingStep
public interface MethodParameterMappingStep
The step in a mapping definition where a method parameter can be mapped.
-
Method Summary
Modifier and TypeMethodDescriptiondefault MethodParameterMappingStep
projection
(BeanReference<? extends ProjectionBinder> binder) Maps a constructor parameter to a projection definition picked by the given binder.projection
(BeanReference<? extends ProjectionBinder> binder, Map<String, Object> params) Maps a constructor parameter to a projection definition picked by the given binder with the given parameters.default MethodParameterMappingStep
projection
(ProjectionBinder binder) Maps a constructor parameter to a projection definition picked by the given binder.default MethodParameterMappingStep
projection
(ProjectionBinder binder, Map<String, Object> params) Maps a constructor parameter to a projection definition picked by the given binder with the given parameters.
-
Method Details
-
projection
Maps a constructor parameter to a projection definition picked by the given binder.- Parameters:
binder
- AProjectionBinder
responsible for creating a projection definition.- Returns:
this
, for method chaining.- See Also:
-
ProjectionBinder
ProjectionDefinition
SearchProjectionFactory
ProjectionBinding
IdProjectionBinder
FieldProjectionBinder
ScoreProjectionBinder
DocumentReferenceProjectionBinder
EntityProjectionBinder
EntityReferenceProjectionBinder
ObjectProjectionBinder
CompositeProjectionBinder
HighlightProjectionBinder
-
projection
Maps a constructor parameter to a projection definition picked by the given binder with the given parameters.- Parameters:
binder
- AProjectionBinder
responsible for creating a projection definition. * @param params The parameters to make available to the binder throughProjectionBindingContext.param(String, Class)
orProjectionBindingContext.paramOptional(String, Class)
.- Returns:
this
, for method chaining.- See Also:
-
projection
Maps a constructor parameter to a projection definition picked by the given binder.- Parameters:
binder
- ABeanReference
to aProjectionBinder
responsible for creating a projection definition.- Returns:
this
, for method chaining.- See Also:
-
projection
MethodParameterMappingStep projection(BeanReference<? extends ProjectionBinder> binder, Map<String, Object> params) Maps a constructor parameter to a projection definition picked by the given binder with the given parameters.- Parameters:
binder
- ABeanReference
to aProjectionBinder
responsible for creating a projection definition.params
- The parameters to make available to the binder throughProjectionBindingContext.param(String, Class)
orProjectionBindingContext.paramOptional(String, Class)
.- Returns:
this
, for method chaining.- See Also:
-