Interface MethodParameterMappingStep
-
public interface MethodParameterMappingStepThe step in a mapping definition where a method parameter can be mapped.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default MethodParameterMappingStepprojection(BeanReference<? extends ProjectionBinder> binder)Maps a constructor parameter to a projection definition picked by the given binder.MethodParameterMappingStepprojection(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 MethodParameterMappingStepprojection(ProjectionBinder binder)Maps a constructor parameter to a projection definition picked by the given binder.default MethodParameterMappingStepprojection(ProjectionBinder binder, Map<String,Object> params)Maps a constructor parameter to a projection definition picked by the given binder with the given parameters.
-
-
-
Method Detail
-
projection
default MethodParameterMappingStep projection(ProjectionBinder binder)
Maps a constructor parameter to a projection definition picked by the given binder.- Parameters:
binder- AProjectionBinderresponsible 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
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.- Parameters:
binder- AProjectionBinderresponsible for creating a projection definition. * @param params The parameters to make available to the binder throughProjectionBindingContext.param(String)orProjectionBindingContext.paramOptional(String).- Returns:
this, for method chaining.- See Also:
ProjectionDefinition,SearchProjectionFactory,ProjectionBinding
-
projection
default MethodParameterMappingStep projection(BeanReference<? extends ProjectionBinder> binder)
Maps a constructor parameter to a projection definition picked by the given binder.- Parameters:
binder- ABeanReferenceto aProjectionBinderresponsible for creating a projection definition.- Returns:
this, for method chaining.- See Also:
ProjectionBinder,ProjectionDefinition,SearchProjectionFactory,ProjectionBinding
-
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- ABeanReferenceto aProjectionBinderresponsible for creating a projection definition.params- The parameters to make available to the binder throughProjectionBindingContext.param(String)orProjectionBindingContext.paramOptional(String).- Returns:
this, for method chaining.- See Also:
ProjectionDefinition,SearchProjectionFactory,ProjectionBinding
-
-