cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sylvain Wallez <sylv...@apache.org>
Subject Re: cvs commit: cocoon-2.1/src/blocks/fop/java/org/apache/cocoon/serialization FOPSerializer.java
Date Wed, 04 Feb 2004 22:30:48 GMT
Vadim Gritsenko wrote:

> Joerg Heinicke wrote:
>
>> Does this mean we can now reference images using all Cocoon 
>> protocols? I mean also for <fo:external-graphic src=""/> and similar?
>>
>> On 04.02.2004 15:39, sylvain@apache.org wrote:
>>
>>> sylvain     2004/02/04 06:39:58
>>>
>>>   Modified:    src/blocks/fop/java/org/apache/cocoon/serialization
>>>                         FOPSerializer.java
>>>   Log:
>>>   Add support for all cocoon protocols for <svg:image 
>>> xlink:href="..."/>
>>
>> ...
>>
>>>   +        SourceProtocolHandler.setup(this.resolver);
>>
>>
>>
>> And this by only such a simple change? Woah!! This would be worth a 
>> mentioning in status.xml, Sylvain, as this solves frequently asked 
>> questions on FOP/Batik.
>
>
>
> I still wonder how this will fork in multithreading environment... 
> This is static method call, and each sitemap have different resolver. 
> Will this crash on 2 simulteneous requests?


This uses a ThreadLocal under the hood, so there should be no problem. 
This trick is necessary because Batik's URL resolving mechanism doesn't 
allow to pass the SourceResolver along the call chain.

Sylvain

-- 
Sylvain Wallez                                  Anyware Technologies
http://www.apache.org/~sylvain           http://www.anyware-tech.com
{ XML, Java, Cocoon, OpenSource }*{ Training, Consulting, Projects }
Orixo, the opensource XML business alliance  -  http://www.orixo.com



Mime
View raw message