> On 01 Apr 2016, at 12:09, Balázs Zsoldos <[email protected]> wrote:
> 
> I would like a function in felix-configadmin, that loads all of the
> configuration from the storage, and if there are any changes, it applies
> them.

IIRC ConfigAdmin is already quite smart in that it only provisions 
configurations
that are changed/deleted. This would only mean that you need to figure out that
you need to ask ConfigAdmin to re-provision such a configuration in case it 
changed.

How these changes are passed to ConfigAdmin is the responsibility of another
entity. Amdatu Configurator, Felix AutoConf resource processor or Felix 
FileInstall
are examples of such entities. These entities can do all kinds of “smart" 
things,
like watch Git repositories, Etcd spaces or get notified in case of changes, and
push forward the changes to ConfigAdmin.

Having a “refresh” on ConfigAdmin suggests that you’re directly mangling the 
back-
end storage of ConfigAdmin. This seems a nice way of doing things, but in the 
long
term will bite you one way or the other (concurrency issues of filesystem level,
etc.). I’d rather not go this way.


--
Met vriendelijke groeten | Kind regards

Jan Willem Janssen | Software Architect
+31 631 765 814


My world is something with Amdatu and Apache

Luminis Technologies
Churchillplein 1
7314 BZ  Apeldoorn
+31 88 586 46 00

https://www.luminis.eu

KvK (CoC) 09 16 28 93
BTW (VAT) NL8170.94.441.B.01

Attachment: signature.asc
Description: Message signed with OpenPGP using GPGMail

Reply via email to