directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pste...@apache.org
Subject svn commit: r123397 - /incubator/directory/naming/trunk/factory/src/java/org/apache/naming/factory/BeanFactory.java
Date Mon, 27 Dec 2004 08:26:55 GMT
Author: psteitz
Date: Mon Dec 27 00:26:53 2004
New Revision: 123397

URL: http://svn.apache.org/viewcvs?view=rev&rev=123397
Log:
Changed class javadoc to refer to XmlConfigurator.
Modified:
   incubator/directory/naming/trunk/factory/src/java/org/apache/naming/factory/BeanFactory.java

Modified: incubator/directory/naming/trunk/factory/src/java/org/apache/naming/factory/BeanFactory.java
Url: http://svn.apache.org/viewcvs/incubator/directory/naming/trunk/factory/src/java/org/apache/naming/factory/BeanFactory.java?view=diff&rev=123397&p1=incubator/directory/naming/trunk/factory/src/java/org/apache/naming/factory/BeanFactory.java&r1=123396&p2=incubator/directory/naming/trunk/factory/src/java/org/apache/naming/factory/BeanFactory.java&r2=123397
==============================================================================
--- incubator/directory/naming/trunk/factory/src/java/org/apache/naming/factory/BeanFactory.java
(original)
+++ incubator/directory/naming/trunk/factory/src/java/org/apache/naming/factory/BeanFactory.java
Mon Dec 27 00:26:53 2004
@@ -35,50 +35,28 @@
 /**
  * Object factory for any Resource conforming to the JavaBean spec.
  * 
- * <p>This factory can be configured in a <code>&lt;DefaultContext&gt;</code>
- * or <code>&lt;Context&gt;</code> element in your <code>conf/server.xml</code>
- * configuration file.  An example of factory configuration is:</p>
+ * <p>This factory can be configured using the 
+ * {@link org.apache.naming.config.XmlConfigurator}.   An example of factory 
+ * configuration is:</p>
  * <pre>
- * &lt;Resource name="jdbc/myDataSource" auth="SERVLET"
- *   type="oracle.jdbc.pool.OracleConnectionCacheImpl"/&gt;
- * &lt;ResourceParams name="jdbc/myDataSource"&gt;
+ * &lt;resource name="jdbc/pool" type="javax.sql.DataSource"&gt;
  *   &lt;parameter&gt;
- *     &lt;name&gt;factory&lt;/name&gt;
- *     &lt;value&gt;org.apache.naming.factory.BeanFactory&lt;/value&gt;
+ *     &lt;name&gt;driverClassName&lt;/name&gt;
+ *     &lt;value&gt;org.hsqldb.jdbcDriver&lt;/value&gt;
  *   &lt;/parameter&gt;
  *   &lt;parameter&gt;
- *     &lt;name&gt;driverType&lt;/name&gt;
- *     &lt;value&gt;thin&lt;/value&gt;
+ *     &lt;name&gt;url&lt;/name&gt;
+ *     &lt;value&gt;jdbc:hsqldb:target/hsqldb&lt;/value&gt;
  *   &lt;/parameter&gt;
  *   &lt;parameter&gt;
- *     &lt;name&gt;serverName&lt;/name&gt;
- *     &lt;value&gt;hue&lt;/value&gt;
- *   &lt;/parameter&gt;
- *   &lt;parameter&gt;
- *     &lt;name&gt;networkProtocol&lt;/name&gt;
- *     &lt;value&gt;tcp&lt;/value&gt;
- *   &lt;/parameter&gt; 
- *   &lt;parameter&gt;
- *     &lt;name&gt;databaseName&lt;/name&gt;
- *     &lt;value&gt;XXXX&lt;/value&gt;
- *   &lt;/parameter&gt;
- *   &lt;parameter&gt;
- *     &lt;name&gt;portNumber&lt;/name&gt;
- *     &lt;value&gt;NNNN&lt;/value&gt;
- *   &lt;/parameter&gt;
- *   &lt;parameter&gt;
- *     &lt;name&gt;user&lt;/name&gt;
- *     &lt;value&gt;XXXX&lt;/value&gt;
+ *     &lt;name&gt;username&lt;/name&gt;
+ *     &lt;value&gt;sa&lt;/value&gt;
  *   &lt;/parameter&gt;
  *   &lt;parameter&gt;
  *     &lt;name&gt;password&lt;/name&gt;
- *     &lt;value&gt;XXXX&lt;/value&gt;
- *   &lt;/parameter&gt;
- *   &lt;parameter&gt;
- *     &lt;name&gt;maxLimit&lt;/name&gt;
- *     &lt;value&gt;5&lt;/value&gt;
+ *     &lt;value&gt;&lt;/value&gt;
  *   &lt;/parameter&gt;
- * &lt;/ResourceParams&gt;
+ * &lt;/resource&gt;
  * </pre>
  *
  * @author <a href="mailto:aner at ncstech.com">Aner Perez</a>

Mime
View raw message