jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexander Klimetschek" <aklim...@day.com>
Subject Re: Extending SimpleWebDavServlet
Date Sun, 07 Sep 2008 16:44:34 GMT
On Fri, Sep 5, 2008 at 3:08 PM, Marc Speck <marcspeck@gmail.com> 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 <marcspeck@gmail.com> 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
alexander.klimetschek@day.com

Mime
View raw message