I'm trying to solve a problem for a friend! [tic]

He has a factory metatype definition

e.g.
// still using bnd annotations
@Meta.OCD(
    factory = true,
    id = "the.pid"
)

He would like 2 distinct configuration instances having specific properties
set, to be instantiated from this definition "by default" at the start of
the framework (of course once all deps are started and so on...)

However, I do not like the notion of pragmatically creating the
configurations using the config admin API.

Is there a more elegant way to do this, preferably using DS?

-- 
*Raymond Augé* <http://www.liferay.com/web/raymond.auge/profile>
 (@rotty3000)
Senior Software Architect *Liferay, Inc.* <http://www.liferay.com>
 (@Liferay)
Board Member & EEG Co-Chair, OSGi Alliance <http://osgi.org> (@OSGiAlliance)
_______________________________________________
OSGi Developer Mail List
osgi-dev@mail.osgi.org
https://mail.osgi.org/mailman/listinfo/osgi-dev

Reply via email to