cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sylvain Wallez <sylvain.wal...@anyware-tech.com>
Subject Re: can we move roles.xconf
Date Mon, 07 May 2001 13:28:11 GMT


Berin Loritsch a écrit :
> 
> Sylvain Wallez wrote:
> >
> > Berin Loritsch a écrit :
> > >
> > > giacomo wrote:
> > > >
> > > > I'd like to suggest to move the roles.xconf file out of the src tree
> > > > somewhere near to the cocoon.xconf file (BTW I'd like to move
> > > > cocoon.xconf and roles.xconf file into the WEB-INF directory).
> > >
> > Isn't it "cocoon.roles" ?
> 
> Yes it is.  I was using what Giacomo was saying.
> 
> > I totally agree that cocoon.roles is a developper concern, but when
> > Cocoon is the base of a bigger system which defines new components, it
> > would be nice to be able to define new roles for them instead of using
> > <component> elements.
> >
> > What do you think of adding an optional attribute to the top-level
> > "cocoon" element that names an alternate roles definition file that is
> > loaded from the classpath, i.e. <cocoon role-defs="mysystem.roles"> ?
> > This affects only Cocoon.java, and not Excalibur.
> 
> There is one change (that I think I can sneak in before hand) in Excalibur
> that needs to be made: altering the policy of the RoleManager.  It should
> be able to be written multiple times, and merge the results.
> 
Does this mean we could have role definitions that augment the ones in
cocoon.roles ? That would be great since it would avoid cut'n paste
which is always a bad thing. My proposal then becomes "<cocoon
additional-roles='myroles.roles'>".

-- 
Sylvain Wallez
Anyware Technologies - http://www.anyware-tech.com

---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Mime
View raw message