Re: Multiple configuration items per service

2010-02-04 Thread cordenier christophe
. 2010/2/4 Thiago H. de Paula Figueiredo > On Thu, 04 Feb 2010 15:07:44 -0200, cordenier christophe < > christophe.corden...@gmail.com> wrote: > > I have also thought about this solution, but it requires to instantiate >> objects for simple lists of String. >> > > IMHO, it's way better to insta

Re: Multiple configuration items per service

2010-02-04 Thread Thiago H. de Paula Figueiredo
On Thu, 04 Feb 2010 15:07:44 -0200, cordenier christophe wrote: I have also thought about this solution, but it requires to instantiate objects for simple lists of String. IMHO, it's way better to instantiate one or two dozens of objects and keep the configuration simple than complicate t

Re: Multiple configuration items per service

2010-02-04 Thread cordenier christophe
I meant i have chosen to implement your second solution that is effectively better in separation of concerns but requires more declarations in my Module class (if i have understood it well) 2010/2/4 Howard Lewis Ship > Sometimes it codes better, too ... separation of concerns. > > On Thu, Feb 4,

Re: Multiple configuration items per service

2010-02-04 Thread Howard Lewis Ship
Sometimes it codes better, too ... separation of concerns. On Thu, Feb 4, 2010 at 9:43 AM, cordenier christophe wrote: > Hi > > I have chosen the second solution. It works fine. > > Regards, > Christophe > > 2010/2/4 Howard Lewis Ship > >> Contribute a map of instead. >> >> Or have two services

Re: Multiple configuration items per service

2010-02-04 Thread cordenier christophe
Hi I have chosen the second solution. It works fine. Regards, Christophe 2010/2/4 Howard Lewis Ship > Contribute a map of instead. > > Or have two services to manage the list and a third service that makes > use of the first two services (& their configurations). > > On Thu, Feb 4, 2010 at 5:

Re: Multiple configuration items per service

2010-02-04 Thread Howard Lewis Ship
Contribute a map of instead. Or have two services to manage the list and a third service that makes use of the first two services (& their configurations). On Thu, Feb 4, 2010 at 5:34 AM, cordenier christophe wrote: > Hi, > > I have a use case where i want to provide to my service a white list

Re: Multiple configuration items per service

2010-02-04 Thread cordenier christophe
I have also thought about this solution, but it requires to instantiate objects for simple lists of String. 2010/2/4 Thiago H. de Paula Figueiredo > On Thu, 04 Feb 2010 14:47:17 -0200, cordenier christophe < > christophe.corden...@gmail.com> wrote: > > The problem is that i need to build dedic

Re: Multiple configuration items per service

2010-02-04 Thread Thiago H. de Paula Figueiredo
On Thu, 04 Feb 2010 14:47:17 -0200, cordenier christophe wrote: The problem is that i need to build dedicated service to handle whiteList and blackList for each service that requires different configuration if i don't want to manipulate Map, it will create 2*n + n instance of services fo

Re: Multiple configuration items per service

2010-02-04 Thread cordenier christophe
The problem is that i need to build dedicated service to handle whiteList and blackList for each service that requires different configuration if i don't want to manipulate Map, it will create 2*n + n instance of services for services that requires a WhiteListManager and a BlackListManager. By ext

Re: Multiple configuration items per service

2010-02-04 Thread Thiago H. de Paula Figueiredo
On Thu, 04 Feb 2010 13:20:04 -0200, Kristian Marinkovic wrote: as with the activation context i think it would be very error prone (from my exprience). what if you really swap the parameter positions, consider more than two parameters. i think the chance to create bugs that cannot be detected

Re: Multiple configuration items per service

2010-02-04 Thread cordenier christophe
we a good idea as you could spare >> some indirections >> > > Nice idea ! > > >> >> g, >> kris >> >> >> >> >> cordenier christophe >> 04.02.2010 15:16 >> Bitte antworten an >> "Tapestry users" >> >

Re: Multiple configuration items per service

2010-02-04 Thread cordenier christophe
> g, > kris > > > > > cordenier christophe > 04.02.2010 15:16 > Bitte antworten an > "Tapestry users" > > > An > Tapestry users > Kopie > > Thema > Re: Multiple configuration items per service > > > > > > > 2010/2/4 Kris

Re: Multiple configuration items per service

2010-02-04 Thread Kristian Marinkovic
ers Kopie Thema Re: Multiple configuration items per service 2010/2/4 Kristian Marinkovic > hi, > > i guess it is so because it is difficult to distinguish the > contributions if they are of the same type: > > Filter(Collection whitelist, Collection blacklist>) > &g

Re: Multiple configuration items per service

2010-02-04 Thread cordenier christophe
2010/2/4 Kristian Marinkovic > hi, > > i guess it is so because it is difficult to distinguish the > contributions if they are of the same type: > > Filter(Collection whitelist, Collection blacklist>) > > contribute(Configuration blacklist, Configuration > whitelist) > Also i think ordering shou

Re: Multiple configuration items per service

2010-02-04 Thread cordenier christophe
Hi Thanks for your quick answer, the thing is that i have multiple security filters with their own list of whiteList and blackList. Then i will have a lot of indirection contribution methods. I will try to find a better design approach to my filters. I should have a global filter chain and use a

Re: Multiple configuration items per service

2010-02-04 Thread Kristian Marinkovic
hi, i guess it is so because it is difficult to distinguish the contributions if they are of the same type: Filter(Collection whitelist, Collection blacklist>) contribute(Configuration blacklist, Configuration whitelist) i solve these type of problems by creating two seperate services either