InterceptorProxyCreatorImpl proxyCreator = new InterceptorProxyCreatorImpl(Collections.<InterceptorRegistry<Class<?>, ?>>singletonList(interceptorRegistry), Collections.<InterceptionHandlerFactory<?>>singletonList(interceptionHandlerFactory));
return (T) proxyCreator.createProxyFromInstance(instance, superClass);
}
catch (Exception e)
{
throw new InterceptorException(e);
}
}