cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Grzegorz Kossakowski <g...@tuffmail.com>
Subject Re: JNet integration doubts
Date Sat, 22 Mar 2008 14:44:49 GMT
Reinhard Poetz pisze:
> Grzegorz Kossakowski wrote:
>> Hello,
>>
>> I've played with JNet for a while trying to integrate it with SSF and run
>> into many troubles.
>>
>> First of all, I'm not sure if I understand whole concept correctly. Do I
>> understand correctly that JNet provides SourceURLStreamHandlerFactory
>> class
>> that acts just like a bridge supporting legacy Source implementations?
>> Should
>> we consider URLStreamHandlerFactory and URLStreamHandler as general
>> replacements for SourceFactory and Source interfaces?
>>
>> If a long-term goal is to drop Source and SourceFactory interfaces
>> what about
>> extension like ModifiableSource, MoveableSource, PostableSource? How
>> can they
>> be supported by URLConnection and friends?
>>
>> --- o0o ---
>>
>> Another problem is with the implementation. There is a problem with
>> installing SourceURLStreamHandlerFactory because: a) it must be installed
>> before ServletFactoryBean is being used at Spring initialization phase
>> b) it
>> must be installed after ApplicationContext is created because
>> SourceFactories
>> are components that must be initialized by Spring container.
>>
>> I have no clue how to solve this problem. Any ideas?
> 
> 
> 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.

-- 
Grzegorz Kossakowski

Mime
View raw message