public class HashRangeMethodExecutor
extends java.lang.Object
implements org.springframework.expression.MethodExecutor
MethodExecutor
using an first argument as key
to be used as a range search with a List of Object found from
a second argument.
Spel expression for this would be "range(region,{10,20,30,40})". Value 15 would create key "20_range", 40 key "40_range" and 45 key "40_range".
Constructor and Description |
---|
HashRangeMethodExecutor() |
Modifier and Type | Method and Description |
---|---|
org.springframework.expression.TypedValue |
execute(org.springframework.expression.EvaluationContext context,
java.lang.Object target,
java.lang.Object... arguments) |
static java.lang.String |
range(java.lang.Object arg1,
java.util.List<?> arg2) |
public org.springframework.expression.TypedValue execute(org.springframework.expression.EvaluationContext context, java.lang.Object target, java.lang.Object... arguments) throws org.springframework.expression.AccessException
execute
in interface org.springframework.expression.MethodExecutor
org.springframework.expression.AccessException
public static java.lang.String range(java.lang.Object arg1, java.util.List<?> arg2) throws org.springframework.expression.AccessException
org.springframework.expression.AccessException