public InterceptorHandler handlerFor(final Class<?> type) {
return cachedHandlers.fetch(type, new Callable<InterceptorHandler>() {
@Override
public InterceptorHandler call() throws Exception {
if(type.isAnnotationPresent(Intercepts.class) && !Interceptor.class.isAssignableFrom(type)){
return new AspectStyleInterceptorHandler(type, stepInvoker, container, customAcceptsExecutor,
acceptsExecutor, interceptorExecutor);
}
return new ToInstantiateInterceptorHandler(container, type);
}
});