You could define a ParameterConverter:
NullStringConverter implements ParameterConverter {
public boolean accept(Type type) {
if (type instanceof Class<?>) {
return String.class.isAssignableFrom((Class<?>) type);
}
return false;
}
public Object convertValue(String value, Type type) {
if ( value.equals("null") ){
return null;
}
return value;
}
}
On 23/09/2010 08:10, sud wrote:
> I want to be able to supply null as a value to a String parameter in
> my step method. How do I do that?
>
> I tried null and it simply gets converted to a String "null".
>
> Thanks
>