Re: How to filter configuration when loading it from XML

2010-03-25 Thread Konstantin
Yep, I've thought about it. It is posiible to subscribe for event before installing new configuration and tailor it as flow of component registrations and unsubscribe ufter conf is loaded. But this approach is more likely a dirty hack then honest solution. Other solution that i can think about is

Re: How to filter configuration when loading it from XML

2010-03-25 Thread 2
Konstantin, That's an interesting problem :) What do you want to do when a plugin containing invalid configuration is registered? Container's events are actually not hacky - most facilities (incl. these comming out of the box) subscribe to, and act upon container events. There's no way to reject

Re: How to filter configuration when loading it from XML

2010-03-25 Thread Konstantin
I do not like to reject plugins. The purpose is to reuse castle configuration system but limit the scope that can be configured. Plugin config should contain only components configurations and properties anything else should be ignored. Plugin contains implementation of some interface lets call it

Re: How to filter configuration when loading it from XML

2010-03-25 Thread 2
Notice you can unregister component only if no other component depends on it. Also there's no way to unregister a facility, that's why if you want to safely 'test' what a plugin provides, an additional test container seems to be the way to go. On 25 Mar, 12:59, Konstantin

Re: Newbie: List in Loop is never printing

2010-03-25 Thread Jennifer Walters
Although what I imagine you really want is: context.Put(lstCustomer, lstCustomer); You must have a great imagination because that was the solution. Thanks for figuring it. -- You received this message because you are subscribed to the Google Groups Castle Project Users group. To post to

Re: How to filter configuration when loading it from XML

2010-03-25 Thread Jason Meckley
windsor xml configuration is designed to configure how the container operates. it sound's like you want to define how a single plug-in operates. For that I would use a custom configuration handler. similar to how Monorail has it's own configuration section independent of windsor. This will give

Re: How to filter configuration when loading it from XML

2010-03-25 Thread Konstantin
I've found a solution (the code is very draft, it is just to proof an idea). class PluginConfigInstaller : IWindsorInstaller, IInterceptor { private readonly IEnumerablestring _componentIds; private readonly IResource _resource; public

Re: Newbie: List in Loop is never printing

2010-03-25 Thread Jennifer Walters
Now I understand what you are saying. Having just started with Castle, it didn't sink in until I just played with what you said. Thanks. -- You received this message because you are subscribed to the Google Groups Castle Project Users group. To post to this group, send email to

[ANN] New MonoRail project leader

2010-03-25 Thread Jonathon Rossi
Hi all, Ken Egozi has decided to pass on the MonoRail leadership, as he is currently unable to contribute the time that MonoRail needs to stay up to date and relevant. The PMC has voted, so it is official that John Simons will take the lead. Many thanks to Ken for his work on MonoRail, it is

Re: How can I register interceptors for a service created UsingFactoryMethod?

2010-03-25 Thread Vinay Mandy
firstly, thank you both for your quick replies; your answers confirmed my suspicion. Krzysztof, There actually was no reason why I was using a factory method in my code. I've finally gotten an opportunity to introduce a DI container into the code base at work, and I was evaluating the

Validator with value from select = problems

2010-03-25 Thread bdaniel7
Hello, I have the following situation: public class License { [BelongsTo] [ValidateNonEmpty(Please select a version.)] public virtual ProductVersion Version { get { return version; } set { version = value; } } } ProductVersion is a simple class, with Id and Name. The versions must be chosen

Re: [ANN] New MonoRail project leader

2010-03-25 Thread Adam Toseland
Congrats John, On Fri, Mar 26, 2010 at 1:00 AM, Jonathon Rossi j...@jonorossi.com wrote: Hi all, Ken Egozi has decided to pass on the MonoRail leadership, as he is currently unable to contribute the time that MonoRail needs to stay up to date and relevant. The PMC has voted, so it is

Re: [ANN] New MonoRail project leader

2010-03-25 Thread Ken Egozi
James - you should've asked whether I knew about this :) John has already contributed hugely to the project, and I'm sure that it is going for a bright future. I will be doing less, but off course not ditching altogether. In a way I still contribute to MR, by working on a potentially huge