Hi,
currently I'm debating on a Vaadin FLow issue how to best create
components in OSGi programmatically. The answer of my last question on
this mailing list regarding this topic was to use scope=PROTOTYPE and
then ServiceObjects<Type>#getService(). This is a solution far better
than the approach I used before but still has some flaws, resulting in
the following question:
Is there (or is it planned to create) an API for SCR to programmatically
create components at runtime?
I think of something like the Apache Felix DependencyManager where I can
register services but not components (with refrences and stuff).
What I think of would be something like this:
scr.createCmp(Class class)
.setActivateMethod(...)
.setReferenceField(...)
.etc...
Kind regards,
Thomas_______________________________________________
OSGi Developer Mail List
[email protected]
https://mail.osgi.org/mailman/listinfo/osgi-dev