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

Reply via email to