DS does not make configurations. It just uses them.
 
Peter has something in enRoute which makes configurations from a resource in a bundle: https://github.com/osgi/osgi.enroute.bundles/tree/master/osgi.enroute.configurer.simple.provider
 
--

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: Raymond Auge <raymond.a...@liferay.com>
Sent by: osgi-dev-boun...@mail.osgi.org
To: OSGi Developer Mail List <osgi-dev@mail.osgi.org>
Cc:
Subject: [osgi-dev] creating default instances from service factories
Date: Fri, Aug 28, 2015 1:56 PM
 
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Ă© (@rotty3000)
Senior Software Architect Liferay, Inc. (@Liferay)
Board Member & EEG Co-Chair, OSGi Alliance (@OSGiAlliance)
_______________________________________________
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