jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From resc...@apache.org
Subject svn commit: r563492 - /jackrabbit/trunk/contrib/spi/jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/RepositoryImpl.java
Date Tue, 07 Aug 2007 13:05:50 GMT
Author: reschke
Date: Tue Aug  7 06:05:49 2007
New Revision: 563492

URL: http://svn.apache.org/viewvc?view=rev&rev=563492
Log:
JCR-1009: add JNDI config example to JavaDoc.

Modified:
    jackrabbit/trunk/contrib/spi/jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/RepositoryImpl.java

Modified: jackrabbit/trunk/contrib/spi/jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/RepositoryImpl.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/contrib/spi/jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/RepositoryImpl.java?view=diff&rev=563492&r1=563491&r2=563492
==============================================================================
--- jackrabbit/trunk/contrib/spi/jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/RepositoryImpl.java
(original)
+++ jackrabbit/trunk/contrib/spi/jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/RepositoryImpl.java
Tue Aug  7 06:05:49 2007
@@ -159,7 +159,20 @@
      *  <dd>Class name for {@link RepositoryConfig} instances</dd>
      * </dl>
      * <p>
-     * All other types are copied over verbatim to the new {@link Reference}
+     * All other types are copied over verbatim to the new {@link Reference}.
+     * <p>
+     * A sample JNDI configuration inside a servlet container's <code>server.xml</code>:
+     * <pre>
+     *   &lt;Resource
+     *         name="jcr/repositoryname"
+     *         auth="Container"
+     *         type="org.apache.jackrabbit.jcr2spi.RepositoryImpl"
+     *         factory="org.apache.jackrabbit.jcr2spi.RepositoryImpl$Factory"
+     *         org.apache.jackrabbit.jcr2spi.RepositoryImpl.factory="<em>class name
of {@link ObjectFactory} for {@link RepositoryConfig} instances</em>"
+     *         org.apache.jackrabbit.jcr2spi.RepositoryImpl.class="<em>class name of
{@link RepositoryConfig} implementation class</em>"
+     *         <em>...additional properties passed to the {@link ObjectFactory}...</em>
+     *   /&gt;
+     * </pre>
      */
     public static class Factory implements ObjectFactory {
 



Mime
View raw message