Steven E. Harris a écrit :
"Steven E. Harris" <[EMAIL PROTECTED]> 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
--
Clement Escoffier
Grenoble University
LSR - Bat. C
220, Rue de la Chimie
BP 53
38041 GRENOBLE CEDEX 9
04.76.51.40.24
http://clement.plop-plop.net