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
hargr...@us.ibm.com
 
 
----- Original message -----
From: David Leangen via osgi-dev <osgi-dev@mail.osgi.org>
Sent by: osgi-dev-boun...@mail.osgi.org
To: David Leangen via osgi-dev <osgi-dev@mail.osgi.org>
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
osgi-dev@mail.osgi.org
https://mail.osgi.org/mailman/listinfo/osgi-dev

 
 

_______________________________________________
OSGi Developer Mail List
osgi-dev@mail.osgi.org
https://mail.osgi.org/mailman/listinfo/osgi-dev

Reply via email to