return null;
}
@Override
public void invokeTimeoutMethod(final Method method, final Timer timer) {
final Interceptor interceptor = timeoutInterceptors.get(method);
if (interceptor == null) {
throw new RuntimeException("Unknown timeout method " + method);
}
try {
InterceptorContext context = prepareInterceptorContext();
context.setMethod(method);
context.setTimer(timer);
context.setTarget(getInstance());
final Object[] params;
if (method.getParameterTypes().length == 1) {
params = new Object[1];
params[0] = timer;
} else {
params = EMPTY_OBJECT_ARRAY;
}
context.setParameters(params);
interceptor.processInvocation(context);
} catch (Exception e) {
throw new RuntimeException(e);
}
}