cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Upayavira" ...@upaya.co.uk>
Subject Re: Polishing the flow contracts
Date Tue, 01 Apr 2003 11:09:43 GMT
> One of the big changes of Cocoon 2.1 compared to 2.0 is that 
> SourceResolver is now available as a regular component, meaning you
> get it using "cocoon.manager.lookup(SourceResolver.ROLE)", so I don't
> see the need to expose it as a property.
> 
> Moreover the process() function could simply take an URI string and
> let the underlying implementation use the SourceResolver to get the
> actual source and verify that it's writeable.
> 
> You will then write :
> cocoon.process("whatever", "file://blah") but also
> cocoon.process("whatever", "context://xdocs/content/foo.xml") (for a
> deployed webapp) and even cocoon.process("whatever",
> "cvs://my-module/foo")
> 
> How does it sound ?

Sounds even better to me.

Upayavira

Mime
View raw message