I've been working with Yauheny on the Framework/Fortress port to C# and had a couple of questions that I was hoping to Avalon community could help answer.
1) In light of the recent discussion and clarification of the ROLE field that is currently used for Java based components, I wondered how people thought this should port over to the C# version. The reason I ask is, in the Java version, defining the ROLE in the interface (for example in Excalibur PoolManager) worked out great. In C# however, fields cannot be defined in interfaces, therefore that approach would be invalid. The closest solution would be to define a read-only property in the interface, but that would still require the interface implementer to define the correct value, which could potentially differ from implementer to implementer defeating the purpose of the ROLE. The other option would be instead of using ROLE, to just reference it by obj.GetType().FullName (similar to Object.class.getName()). While this works fine, and achieves the correct result, it would be a different approach from the Java version and so that is why I ask what the opinion of the group is. I didn't know if differing on some things is tolerable (obviously some things will differ but the use of both should be similar) or if we wanted to try and find a common mechanism for both sides. 2) I guess this one is more for Yauheny or Berin since they seem to have done most of the port so far. How exactly are you implementing the lifecycle management in the C# version? I saw that instead of defining the lifecycles as interfaces that components can implement they have been defined as delegates (or function pointers). I'm curious how this is supposed to work and how the container interfaces with the components. If someone could give me an example I would appreciate it since I'm trying to port some things that require the lifecycles. Chris Geer --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
