Preparing your interceptor
In order to use your interceptor, you need to add it to a MethodInterceptorStack. The simplest way to do that is to use the utility class InterceptorStack.
public MethodInterceptorStack createStack()
{
return InterceptorStack.singleton(new LoggingInterceptor());
}
Then, using that stack you create a ProxyInjector.
public InterceptionInjector createInjector()
{
MethodInterceptorStack stack = createStack();
return new ProxyInjector(stack);
}
The instructions listed above do not require the "ext" jar to be on the classpath.