felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Clement Escoffier <clement.escoff...@gmail.com>
Subject Re: iPOJO lifecycle callbacks -- getting a "context" in hand
Date Fri, 02 Mar 2007 07:37:24 GMT
Steven E. Harris a écrit :
> "Steven E. Harris" <seh@panix.com> writes:
>> Is there some other means to receive or retrieve a context analogous
>> to the DS component context? Or is this a matter of defining a member
>> variable in my component of type BundleContext, expecting it to be
>> assigned/injected by iPOJO when appropriate?
> After some digging, I see there's a way. The class
> org.apache.felix.ipojo.InstanceManager's createPojoObject() method
> detects the presence of a constructor with a single BundleContext
> argument, around line 355, and calls that if available.
Exactly, Lifecycle callbacks can be without any argument or with the 
bundle context. To avoid component model dependency, iPOJO does not 
provides an iPOJO Component Context, but inject a Bundle Context.


Clement Escoffier
Grenoble University
LSR - Bat. C
220, Rue de la Chimie
BP 53

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message