Michael,

On 6/22/05, Michael Mattox <[EMAIL PROTECTED]> wrote:
> I looked at the source code but it uses JavaAssist.  So far my interceptor
> uses the JDK proxies, because that's what the proxy logging interceptor
> uses in the examples so I based my interceptor on that one.  Is it
> possible to filter the methods with the proxy approach?  Is there an
> example?  Or would it just be better for me to convert my interceptor
> factory to use JavaAssist?
> 

It should be pretty straight forward for you to use JDK proxies
instead of Javassist. If you reuse the hivemind.MethodFilter schema
you should also be able to define your JDK proxy using the
MethodMatcher and MethodIterator classes.  I suggest you take a look
at the methods addServiceMethods(InterceptorStack, ClassFab, List) and
buildMethodMatcher(List) in LoggingInterceptorFactory.

Regards,

--knut

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to