Hi, this does not work with DS 1.3 as DS is getting the configurations from configuration admin directly and they are not filtered by the plugins.
But the good news is that DS 1.4 together with configuration admin 1.6 will support this. These updates of the specs are part of the upcoming OSGi R7 release. This feature is already implemented in trunk, so if you take the configuration admin and scr snapshots currently in trunk, it should work. Regards Carsten Nicolas Brasey wrote > Hi all, > > Me and a collegue are fighting to get something working with the config > admin. > > We are trying to accomplish to following: > > 1) Using the config admin with the new Interfaces reprensenting the > configuration (DS v.1.3) > 2) Using a config admin plugin to decrypt some configured properties > (example password) before the DS components method annotated with @Modified > gets called by the config admin > > We manage to have the plugin mechanism working according to the following > code: > > https://github.com/osgi/osgi.enroute.examples/tree/master/osgi.enroute.examples.cm.application/src/osgi/enroute/examples/cm/examples > > But we want to use the interface instead of the dictionnary and be able to > use the @Modified annotation on the method level. > > As described here: > http://njbartlett.name/2015/08/17/osgir6-declarative-services.html > > Such as: > > @Modified > public void updateConfig(MyConfigInterface myConfig) > { > ... > } > > Questions: > > 1) Is it achiveable as is with DS 1.3 and the config admin ? > 2) Do you know any reference where we could have a look on how it is > supposed to work ? > > Thanks for any help on that matter! > > Regards, > Nicolas > -- Carsten Ziegeler Adobe Research Switzerland [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]

