Return-Path: Delivered-To: apmail-jackrabbit-users-archive@minotaur.apache.org Received: (qmail 46500 invoked from network); 25 Nov 2009 21:45:58 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 25 Nov 2009 21:45:58 -0000 Received: (qmail 24339 invoked by uid 500); 25 Nov 2009 21:45:57 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 24297 invoked by uid 500); 25 Nov 2009 21:45:56 -0000 Mailing-List: contact users-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@jackrabbit.apache.org Delivered-To: mailing list users@jackrabbit.apache.org Received: (qmail 24286 invoked by uid 99); 25 Nov 2009 21:45:56 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Nov 2009 21:45:56 +0000 X-ASF-Spam-Status: No, hits=-2.3 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of chadmichaeldavis@gmail.com designates 209.85.218.214 as permitted sender) Received: from [209.85.218.214] (HELO mail-bw0-f214.google.com) (209.85.218.214) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Nov 2009 21:45:54 +0000 Received: by bwz6 with SMTP id 6so135220bwz.11 for ; Wed, 25 Nov 2009 13:45:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=0RxaPUKHcvAAs+JxqSo/95RCrIsN9Pg4QRfL0Ecvpdw=; b=uUT8gv6T6N7TiG7LtBDgiCxAm5FNBi9WYBFfNv2FIvbhcY2fRmt87oZybqBx+RkQLh KrNNPbtcdCOsEADMJAgHZDmzB0yrpQP7sIrTwcwJ7DdQXYiOgpJ8UFGesGOgvp4WdTsN XuzSJxXSlHy3K4roN0cgfovMrQBMCBKh1bfCY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=Ejpbg9BSsTcJuv5X3caBvuCqxwVq2OsO7j3MXIf8jc3i4OC/QbZF3aKQ4KJVkRIk5+ PKRvnBno8tcQ33thYxaEVopUP7zLl2PziboX7v6MpU4qEfNghfeOIQDxSNGN1xYa6HoX qOFJbwyOgGlU4/hiz+7/F3jV0xYJnCAvqEX20= MIME-Version: 1.0 Received: by 10.204.34.13 with SMTP id j13mr4425547bkd.32.1259185532752; Wed, 25 Nov 2009 13:45:32 -0800 (PST) Date: Wed, 25 Nov 2009 14:45:32 -0700 Message-ID: <4fe4c4f50911251345n5b9580e8sf83a9c6fc0cb9b39@mail.gmail.com> Subject: Repository Creation questions From: ChadDavis To: users@jackrabbit.apache.org Content-Type: text/plain; charset=ISO-8859-1 I'm looking at the standalone server code and I see that the creation of the underlying repository does not use the factory pattern. It instead uses the create method of the RepositoryImpl class itselt. Here's the code: repository = RepositoryImpl.create(RepositoryConfig.create( config.toURI(), home.getPath())); Then, looking at the RepositoryFactoryImpl code, I see that it really makes little difference. Which leaves me a bit confused as to why one would use the factory. I suppose it's because it's more flexible, but I'm unable to wrap my head around what that might mean, at this point. So . . . if I'm going to create my own repository, what method is recommended?