RE: [OS-webwork] Programmatic configuration

2003-03-03 Thread Jason Carreira
> -Original Message- > From: Patrick Lightbody [mailto:[EMAIL PROTECTED] > Sent: Monday, March 03, 2003 4:31 PM > To: [EMAIL PROTECTED] > Subject: Re: [OS-webwork] Programmatic configuration > > > > > Why not use the standard XML way to include files in

Re: [OS-webwork] Programmatic configuration

2003-03-03 Thread Patrick Lightbody
> > Why not use the standard XML way to include files in other files, i.e. > > using entities? The above seems a bit like reinventing the wheel. > > I've used entities to include XML files before and I don't them for the > following reasons: > > * It's difficult to figure out exactly where a proble

RE: [OS-webwork] Programmatic configuration

2003-03-03 Thread Matt Ho
> > Here's a suggested solution: > > > > * Each application should have its own xwork.xml file that is placed at > > the root level of the project. For example, > > com/indigoegg/myproject/xwork.xml for a project with a root of > > com.indigoegg.myproject > > > > * Allow xwork.xml to include other

Re: [OS-webwork] Programmatic configuration

2003-02-28 Thread Rickard Öberg
Jason Carreira wrote: -Original Message- From: Rickard Öberg [mailto:[EMAIL PROTECTED] Yes, and the right way to do this is probably to enforce that views have this style "/WEB-INF/foo" where "foo" is the name of the subapp, i.e. do a "hard prefixing". This will ensure that you can al

RE: [OS-webwork] Programmatic configuration

2003-02-28 Thread Jason Carreira
> -Original Message- > From: Rickard Öberg [mailto:[EMAIL PROTECTED] > > Jason Carreira wrote: > > Sort of, but it's not used that way. > > In what way is it not used as a cache? In the way in which if it doesn't find it in the runtime configuration it fails back to the programmatic

RE: [OS-webwork] Programmatic configuration

2003-02-28 Thread Jason Carreira
> -Original Message- > From: Rickard Öberg [mailto:[EMAIL PROTECTED] > > Yes, and the right way to do this is probably to enforce that > views have > this style "/WEB-INF/foo" where "foo" is the name of the > subapp, i.e. do > a "hard prefixing". This will ensure that you can always

Re: [OS-webwork] Programmatic configuration

2003-02-28 Thread Rickard Öberg
Jason Carreira wrote: Sort of, but it's not used that way. In what way is it not used as a cache? E.g.: foo.xml java:/BarDS What happened to the idea of breaking up the config file with an entity resolver? Then you could have &package1 &package2 This could be another way of breaking up

RE: [OS-webwork] Programmatic configuration

2003-02-28 Thread Jason Carreira
> -Original Message- > From: Rickard Öberg [mailto:[EMAIL PROTECTED] > > But, that data structure could be created on each call to the > configuration, i.e. there's a deterministic way to get it from the > registered package contexts. So, in *effect* it *is* a cache. Sort of, but it's

Re: [OS-webwork] Programmatic configuration

2003-02-28 Thread Rickard Öberg
Matt Ho wrote: 2. register each subapp via web.xml config /WEB-INF/struts-config.xml config/admin /WEB-INF/struts-config-admin.xml config/voice /WEB-INF/struts-config-voice.xml

Re: [OS-webwork] Programmatic configuration

2003-02-28 Thread Rickard Öberg
Jason Carreira wrote: I was thinking it would be good to let them be able to do a series of modifications to the programmatic configuration side then commit them all at once. The runtime configuration is not really a cache, it's another set of data structures that is built from the first set. But,

Re: [OS-webwork] Programmatic configuration

2003-02-28 Thread Rickard Öberg
Patrick Lightbody wrote: Interfaces are nice to make mock objects of. Let's keep it around, helps with unit testing I believe :) Well, that argument could be used to justify using interfaces everywhere for anything. It's not really a good reason, in itself. As a "bonus" perhaps. But, again, since

RE: [OS-webwork] Programmatic configuration

2003-02-27 Thread Matt Ho
> >> In general, this "app created from subapps" is something that needs > >> to be considered in all aspects. WebWork was monolithic in this > >> sense, and it'd be good if we can move away from that. As I've > >> already noted a couple of times, I think in the future it will be > >> more common t

RE: [OS-webwork] Programmatic configuration

2003-02-27 Thread Jason Carreira
> > > > Ok. Then I'd propose that it's removed. :-) Let's keep > simple things > > simple. Sometimes you want flexibility and strategy > possibilities, and > > sometimes you want rigidity and stability. This is a case of the > > latter I think. > > Interfaces are nice to make mock objects of

Re: [OS-webwork] Programmatic configuration

2003-02-27 Thread Patrick Lightbody
> Jason Carreira wrote: > >> Why is an interface needed here? I thought this was just a > >> singleton thingy which the app can query. Are there several > >> implementation possibilities, and if so, why? > > > > Probably not needed. I just created them to keep me sane. > > Ok. Then I'd propose tha

RE: [OS-webwork] Programmatic configuration

2003-02-27 Thread Jason Carreira
> -Original Message- > From: Rickard Öberg [mailto:[EMAIL PROTECTED] > Sent: Thursday, February 27, 2003 10:33 AM > > > > The problem here is the case of programmatic configuration. > If someone > > writes code to call into the ConfigurationManager to change the > > configs, then they

Re: [OS-webwork] Programmatic configuration

2003-02-27 Thread Rickard Öberg
Jason Carreira wrote: Here's what I'm thinking: 1) Remove the ManageableConfiguration Interface (was ProgrammableConfiguration) - this is just ConfigurationManager 2) Make RuntimeConfiguration into a class and move that part of ConfigurationManager over to it There will always be only one RuntimeC

RE: [OS-webwork] Programmatic configuration

2003-02-27 Thread Jason Carreira
> -Original Message- > From: Rickard Öberg [mailto:[EMAIL PROTECTED] > Sent: Thursday, February 27, 2003 3:31 AM > To: [EMAIL PROTECTED] > Subject: Re: [OS-webwork] Programmatic configuration > > > Jason Carreira wrote: > >> Why is an interface neede

Re: [OS-webwork] Programmatic configuration

2003-02-27 Thread Rickard Öberg
Jason Carreira wrote: Why is an interface needed here? I thought this was just a singleton thingy which the app can query. Are there several implementation possibilities, and if so, why? Probably not needed. I just created them to keep me sane. Ok. Then I'd propose that it's removed. :-) Let's kee

RE: [OS-webwork] Programmatic configuration

2003-02-27 Thread Jason Carreira
> -Original Message- > From: Rickard Öberg [mailto:[EMAIL PROTECTED] > > Why is an interface needed here? I thought this was just a singleton > thingy which the app can query. Are there several implementation > possibilities, and if so, why? > Probably not needed. I just created the

Re: [OS-webwork] Programmatic configuration

2003-02-26 Thread Rickard Öberg
Jason Carreira wrote: -Original Message- From: Rickard Öberg [mailto:[EMAIL PROTECTED] Ah, ok, I looked at the interface you sent in email, and true, it doesn't describe it well. But, I would argue that the interface should be split, as I described in my first email on programmatic confi

RE: [OS-webwork] Programmatic configuration

2003-02-26 Thread Jason Carreira
> -Original Message- > From: Rickard Öberg [mailto:[EMAIL PROTECTED] > > Ah, ok, I looked at the interface you sent in email, and true, it > doesn't describe it well. But, I would argue that the > interface should > be split, as I described in my first email on programmatic > config

Re: [OS-webwork] Programmatic configuration

2003-02-26 Thread Rickard Öberg
Jason Carreira wrote: Well, it's supposed to provide an interface to allow the configuration to be modified and then deployed to runtime. I'm not sure how well ConfigurationBundle describes that. Ah, ok, I looked at the interface you sent in email, and true, it doesn't describe it well. But, I wou

RE: [OS-webwork] Programmatic configuration

2003-02-26 Thread Joseph Ottinger
I'm not sure how well > ConfigurationBundle describes that. > > > -Original Message- > > From: Rickard Öberg [mailto:[EMAIL PROTECTED] > > Sent: Wednesday, February 26, 2003 10:30 AM > > To: [EMAIL PROTECTED] > > Subject: Re: [OS-webwork] Programmatic

RE: [OS-webwork] Programmatic configuration

2003-02-26 Thread Jason Carreira
uary 26, 2003 10:30 AM > To: [EMAIL PROTECTED] > Subject: Re: [OS-webwork] Programmatic configuration > > > Jason Carreira wrote: > > How about ManagableConfiguration? > > or ConfigurationPackage > > or ConfigurationUnit > > or ConfigurationBundle > >

Re: [OS-webwork] Programmatic configuration

2003-02-26 Thread Rickard Öberg
Jason Carreira wrote: How about ManagableConfiguration? or ConfigurationPackage or ConfigurationUnit or ConfigurationBundle Either works, but maybe ConfigurationBundle best describes what it actually is. --- This SF.net email is sponsored b

RE: [OS-webwork] Programmatic configuration

2003-02-26 Thread Jason Carreira
How about ManagableConfiguration? > -Original Message- > From: Jason Carreira > Sent: Tuesday, February 25, 2003 11:50 PM > To: [EMAIL PROTECTED] > Subject: RE: [OS-webwork] Programmatic configuration > > > Rename away I don't think any of those des

RE: [OS-webwork] Programmatic configuration

2003-02-25 Thread Jason Carreira
y, February 25, 2003 11:47 PM > To: [EMAIL PROTECTED] > Subject: Re: [OS-webwork] Programmatic configuration > > > Eww, what a horrible name, ProgrammableConfiguration! How about > ModifiableConfiguration? DynamicConfiguration? SettableConfiguration? > > On Wednesday, February

Re: [OS-webwork] Programmatic configuration

2003-02-25 Thread Hani Suleiman
Eww, what a horrible name, ProgrammableConfiguration! How about ModifiableConfiguration? DynamicConfiguration? SettableConfiguration? On Wednesday, February 26, 2003, at 08:27 AM, Jason Carreira wrote: I checked in the first pass at programmatic configuration. The way it works is that any class,