Did you make sure you called addElement() at the end of your schema rules?  

-----Original Message-----
From: David J. M. Karlsen [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 12, 2005 7:18 AM
To: [email protected]
Subject: Re: interceptor: getting name of implemened interface


Knut Wannheden wrote:
> David,
> 
> Yes all method calls will go through the interceptor you add. It is 
> thus up to the interceptor to decide whether it should actually do 
> something or just pass on to the delegate. For the interceptor to know 
> what to do the interceptor factory must pass the parameters (in your 
> case <include> and <exclude>) on (e.g. through the interceptor 
> constructor).
> 
> If you like you can also take a look at HiveMind's logging interceptor 
> LoggingInterceptorFactory. It uses Javassist to create an interceptor 
> class and an instance thereof on the fly. The <include> and <exclude> 
> method matching logic is encapsulated directly by this generated 
> class. You may of course also prefer the dynamic proxy approach and 
> code a generic interceptor class yourself. YMMV.

I took a look at the class - but I'm a little confused over this:

In the LoggingInterceptorFactory you get a List of parameters (the 
include/exclude patterns), and the elements in the list are cast to 
MethodContribution objects.

In my interceptorfactory I receive a List of parameters containing 
org.apache.hivemind.impl.ElementImpl objects.

Howcome?


-- 
David J. M. Karlsen - +47 90 68 22 43 http://www.davidkarlsen.com
http://mp3.davidkarlsen.com

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



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

Reply via email to