Define a MyBasePage which has all the properties you want, and then make all your pages inherit from that.
--sam On 4/9/06, Mark <[EMAIL PROTECTED]> wrote: > Hello, > > is there a way to "globally" inject certain properties in a large number > of pages, without having to do it in each page specification file? > For example, I expect all my pages to have a "log" Property which is an > implementation of the commons-logging Log interface. > But I want to plug the particular implementation of the Log interface > using injection at runtime, just like all the other page properties are > plugged at runtime based on the .page specification file as well. > However, I don't want to have to include the same property definition in > every single page-descriptor, since it is not very well maintainable. > Imagine I have 100 pages and now want to change the implementation of > the Log interface - I have to change 100 different .page files. > > So is there a way to do this in a better way? > > Thanks, > > MARK > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
