From: Jamis Buck Date: 2004-09-05T22:25:21+09:00 Subject: Re: Anyone using Copland? I need feedback! Simon Strandgaard wrote: > On Sunday 05 September 2004 02:54, Jamis Buck wrote: > >>Simon Strandgaard wrote: > > [snip] > >>Basically, look at the subsystems (and the sub-subsystems, and so >>forth). You might have a VFS subsystem, a command subsystem, a rendering >>subsystem, and so forth. The VFS subsystem might be further broken down >>into a zip abstraction, an FTP abstraction, and an abstraction for a >>conventional file system. >> >>Once you have an idea of what all the pieces are (and how they relate to >>each other--that's important!) you then arbitrarily change their name >>from "subsystem" to "service", and you're halfway to Copland. The > > > ah.. changing subsystem to service.. it begins to making sense to me. > The FreeRIDE project uses something similar, with services that can be loaded, > started, stopped, etc. I think thier IoC is named FreeBase? Interesting -- I'll have to look at that. Might be a good place to glean ideas from. :) > I want subsystems to be defined in the configuration file.. so that things > which doesn't belong in the editor doesn't bloat it. Maybe copland is the > solution to setting up services in these configuration files? Copland could be one solution. I've maintained for a long time that there is nothing you can do with IoC that you couldn't do without it. It's merely one approach to the problem. > FreeBASE has a logging system.. where each service can have their own log. > Do you provide similar feature? Yup. When using the BuilderFactory (or related factory service) to construct a new service, you can specify that a logger be passed as a constructor parameter, or set as a property on the new object. That's how the logging interceptor works, using the logger for the service it is wrapping. (There's a chapter in the Copland manual in CVS about factory services--when I release 0.7.0 I'll post the updated manual as well. Hopefully that chapter will make the above paragraph a bit more understandable.) >>>Copland looks interesting to me. >> >>That alone is a promising statement. Now if I can just get you to >>_adopt_ it... ;) > > > At the moment im busy with my studies and kind of lacks time.. I think I will > do some experiments with for my configuration system with copland. But I > cannot promise that I will use copland, nor when I will do these experiments. No worries. But if you do start to tinker with it, you might want to join the copland-users mailing list (http://rubyforge.org/mailman/listinfo/copland-users). I'll be happy to answer any questions you have. > > -- > Simon Strandgaard -- Jamis Buck jgb3@email.byu.edu http://www.jamisbuck.org/jamis "I use octal until I get to 8, and then I switch to decimal."