felix-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nicolas Brasey <nicolas.bra...@gmail.com>
Subject Re: Config admin, DS 1.3 and configuration plugin questions
Date Wed, 04 Jan 2017 16:14:47 GMT
Hi Carsten!

Thanks for your answer!

That is great it will come soon as this will be a real great feature!
Looking forward. For the time being, we will not use the plugin and do the
extra decryption in the services directly.

Is there an ETA for the release of the new spec and the corresponding
implementation ?

Thanks!

Regards,
Nicolas



On Wed, Jan 4, 2017 at 8:00 AM, Carsten Ziegeler <cziegeler@apache.org>
wrote:

> 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
> cziegeler@apache.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
> For additional commands, e-mail: users-help@felix.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message