1public class CustomKeyGenerator implements KeyGenerator {
2
3 public Object generate(Object target, Method method, Object... params) {
4 return target.getClass().getSimpleName() + "_"
5 + method.getName() + "_"
6 + StringUtils.arrayToDelimitedString(params, "_");
7 }
8}