Hi, On 04.11.2010, at 12:55, Bigard Olivier wrote:
> Hi, > > > > I tried to dynamically update the < filter > value of a < @Requires > > annotation. > > The problem is that I'm using ConfigAdmin service to create my instances > and, as Clement explained in the following thread, ConfigAdmin doesn't > support Dictionary class... > > http://old.nabble.com/-iPOJO--Filter-as-a-parameter-to28927205.html > > > > Is there any reason why "DependencyHandler" class cannot analyze another > structure than a Dictionary in the "configure()" method for > "requires.filters"? > > Would it be possible to pass a Collection object in the properties > Dictionary for "requires.filters" key and the "DependencyHandler" > analyzes it like a suit of key/value pairs > ({key1;value1;key2;value2;...})? The handler uses a dictionary / map because of of the dependency identification. You can have several dependencies, and so update several filters. The only way to support 'flat' structure would be to use name convention, and I'm definitely not a fan of such kind of techniques. To update the filter you can either: - use iPOJO factories instead of Config Admin. Factories support maps. - use the iPOJO API to update the filter of a specific instance Regards, Clement > > > > Thanks in advance > > Regards, > > Olivier > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]

