David,

In the interceptor factory implementation you get passed the
InterceptorStack object, which declares a getServiceInterface()
method. You should be able to pass that into the constructor of your
interceptor. The Class returned by getServiceInterface() will be a
synthesized interface if the service in question is a bean service.

--knut 

On 5/9/05, David J. M. Karlsen <[EMAIL PROTECTED]> wrote:
> Hi!
> 
> I'm writing an interceptor for timing of method-calls (based on jamon).
> 
> I want to get the name of the implemented service-interface from the
> delegate passed to the constructor. (Following the example at:
> http://jakarta.apache.org/hivemind/hivemind-examples/logging.html)
> 
> How could I get the name the easiest way possible? Is there a
> helper-class somewhere? How am I assured to get the name of the
> interface of the service (in all cases, the delegate is another class
> depending on service-model, other interceptors and so on). I want to
> avoid a lot of introspection and checking on Hivemind specific
> service-models etc.).
> 
> Kind regards,
> David K.
> 
> --
> 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