Hello,
On 12.03.2009, at 14:33, greg higgins wrote:
Hi,
I am new to ipojo and felix and have a couple of questions regarding
ipojo bye manipulation:
1)Are all methods calls for an ipojo intercepted and sent through
the __onEntry, __<replacedMethod>, __onExit chain?
Yes, all methods are wrapped except static and synthesized methods.
However, the delegation (interception) is only enabled if needed.
2)How Do I get acess to the InstanceManager (__IM) to set the
boolean field __M<replacedMethod>?
This is called by the iPOJO instance manager when instantiating a new
POJO object. The POJO constructor receives the InstanceManager object
and calls the _setInstanceManager method (see http://cwiki.apache.org/confluence/display/FELIX/Dive+into+the+iPOJO+Manipulation+depths)
. This method asks the instance manager to know which method / field
have to be delegated.
3)What handlers use the onEntry/onExit callbacks?
A couple of handlers use it, but the most famous one is the Required
Service Handler. This handler tracks method entries and exits to
manage the synchronization.
3)Is there a default error handler I can use to pick up the onError
callback?
As far as I know, no. I developed a handler logging stuff when some
specific methods were called. I can ask if it can be released in open
source.
Regards,
Clement
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]