cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Carsten Ziegeler <>
Subject Re: JNet integration doubts
Date Tue, 25 Mar 2008 07:10:35 GMT
I'll try to respond in more details to this during the week :)
But as a first quick answer: jnet can be considered alpha, so it might 
have some rough edges especially when it comes to integration.
I think it makes more sense to move the excalibur sourceresolver support 
into an optional module for jnet and keep jnet completly free from such 
The abstraction we introduced with all these sub interfaces from source 
looked great in the beginning, but today I'm not sure that you really 
need this. Traversing over http urls is not working for instance; if you 
want to traverse of files, well use the file api etc.

More during the week


Grzegorz Kossakowski wrote:
> Grzegorz Kossakowski pisze:
>>> AFAIU, you call
>>> Installer.setURLStreamHandlerFactory(new SourceURLStreamHandlerFactory());
>>> at the startup of your application.
>>> Then you can use the SourceFactoriesManager to install and uninstall
>>> source factories.
>> Yes, but when and where should I call SourceFactoriesManager to install SourceFactories?
>> That's the main problem here.
> Ok, somehow "solved" and committed. The stuff I committed should be considered as experimental
> though it works...) so don't be surprised seeing lots of hacks.
> After playing with JNet idea for a while I'm more and more doubtful about the direction
we have
> taken. I really like Source, SourceFactory interfaces, they are clean, focused and obvious
to use
> contrary to the URL machinery from Java API. Look at what I committed, there is no way
to release
> underlying Source object if InputStream was not been obtained.
> Moreover, if you need some advanced functionality (e.g. traversable source) you still
need switch
> back to Excalibur interfaces. Same goes for modifiable, postable etc.
> I'm going to invest my energy into implementation of my original idea of providing default
> SourceResolver for SSF internal needs so we can release SSF 1.1.0 ASAP. I'll wait with
> integration until someone (Carsten?) else chimes in and explains how everything should
be glued.
> Abstract description explaining what are _real_ benefits of integrating JNet into SSF
and Cocoon
> (Corona?) in general would be good. I really need to get some roadmap if I'm going to
> Thanks for listening and have happy post-Easter time!

Carsten Ziegeler

View raw message