BJ, When I first saw your comment a couple of weeks ago about being able to pass any object, it sounded interesting and I have just used it in some tests and will be leveraging this approach. Thanks for the tip.
Alain On Fri, Jul 13, 2018 at 4:04 PM BJ Hargrave via osgi-dev < [email protected]> wrote: > Component properties are basically service properties which are basically > meant to be things that can go in a Configuration: > https://osgi.org/specification/osgi.core/7.0.0/framework.module.html#i3217016. > Complex objects including objects implementing functional interfaces are > not in scope for a Configuration. > > That said, I imagine you could pass any value object in the Dictionary > supplied to ComponentFactory.newInstance since they are not stored in > Configuration Admin and SCR would not police the value object types :-) > -- > > BJ Hargrave > Senior Technical Staff Member, IBM // office: +1 386 848 1781 > OSGi Fellow and CTO of the OSGi Alliance // mobile: +1 386 848 3788 > [email protected] > > > > ----- Original message ----- > From: David Leangen via osgi-dev <[email protected]> > Sent by: [email protected] > To: David Leangen via osgi-dev <[email protected]> > Cc: > Subject: [osgi-dev] Functions as configuration > Date: Fri, Jul 13, 2018 3:32 PM > > Hi! > > Is there any way to include functions as part of a component configuration? > > > Cheers, > =David > > _______________________________________________ > OSGi Developer Mail List > [email protected] > https://mail.osgi.org/mailman/listinfo/osgi-dev > > > > > _______________________________________________ > OSGi Developer Mail List > [email protected] > https://mail.osgi.org/mailman/listinfo/osgi-dev
_______________________________________________ OSGi Developer Mail List [email protected] https://mail.osgi.org/mailman/listinfo/osgi-dev
