On Fri, Sep 5, 2008 at 3:08 PM, Marc Speck <[EMAIL PROTECTED]> wrote:
> Ok, everybody seems to silently agree that there is no threading issue with
> this servlet method:

I don't think everybody silently agrees, it's just that not everybody
knows the details of the webdav implementation. The original author is
currently on vacation, maybe she can answer you later.

Anyway, have you seen any explicit problems with this method?

Regards,
Alex

>
> public DavLocatorFactory getLocatorFactory() {
>    if (locatorFactory == null) {
>        locatorFactory = new LocatorFactoryImplEx(resourcePathPrefix);
>    }
>    return locatorFactory;
> }
>
>
> I just ask why this is thread safe. It is not called in servlet.init() or
> the like, isn't it?
> Thanks,
> Marc
>
>
>
>
> On Tue, Sep 2, 2008 at 8:55 AM, Marc Speck <[EMAIL PROTECTED]> wrote:
>>
>> While extending SimpleWebDavServlet, I could not see at first glance how
> getLocatorFactory() (
> http://fisheye6.atlassian.com/browse/jackrabbit/trunk/jackrabbit-jcr-server/src/main/java/org/apache/jackrabbit/webdav/simple/SimpleWebdavServlet.java?r=603178#l204)
> is called the first time (for lazy initialization) in a thread-safe way.
>>
>> Thanks for any hints,
>> Marc
>



-- 
Alexander Klimetschek
[EMAIL PROTECTED]

Reply via email to