You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hivemind.apache.org by "Teshler, Andre" <An...@tui.de> on 2004/09/02 16:51:50 UTC

intercepting 'initialize-method'

Hello,

I am wondering whether it is possible to intercept the the method used as
'initialize-method' for the service.

In my tests the hivemind seems to call the 'initialize-method' of the _inner
class directly ignoring all interceptors defined for the 

Service although the method is declared in the service interface.

Thanks

Andre Teshler


RE: intercepting 'initialize-method'

Posted by James Carman <ja...@carmanconsulting.com>.
Yes, you can intercept it, but the interceptor won't be called when the
instance is constructed.  Any subsequent calls to the service's initialize
method (through its proxy) will use the interceptor.  The BuilderFactory
calls the initialize method on the service implementation object directly.
Of course that's probably NOT what you want to do (call the initialize
method directly).  What are you trying to do?  Why do you need to intercept
your initialize method?  Maybe we can come up with another way to do it. 

 

-----Original Message-----
From: Teshler, Andre [mailto:Andre.Teshler@tui.de] 
Sent: Thursday, September 02, 2004 10:52 AM
To: 'hivemind-user@jakarta.apache.org'
Subject: intercepting 'initialize-method'

 

Hello,

I am wondering whether it is possible to intercept the the method used as
'initialize-method' for the service.

In my tests the hivemind seems to call the 'initialize-method' of the _inner
class directly ignoring all interceptors defined for the 

Service although the method is declared in the service interface.

Thanks

Andre Teshler