(no commit message)
authorErik Brakkee <erik@brakkee.org>
Sat, 17 Jul 2010 17:42:39 +0000 (17:42 +0000)
committerErik Brakkee <erik@brakkee.org>
Sat, 17 Jul 2010 17:42:39 +0000 (17:42 +0000)
test/README.txt
wicket/joe/src/main/java/org/wamblee/wicket/inject/ComponentInstantiationInjector.java
wicket/joe/src/main/java/org/wamblee/wicket/transactions/OpenTransactionInViewRequestCycle.java
wicket/joe/src/site/xdoc/index.xml

index 6879926d8336b7555bc3e809f94bca980d3fef96..ff94a31b44124e2ecfad707f997b93aa1090d623 100644 (file)
@@ -1,7 +1,8 @@
 
 
-Behavior which requires a persistence provider but does not use the persistence provider
-extensively is only tested with hibernate. 
 
 Test code for each of the JPA providers is in a separate 'jpatest-' project. This is 
 required to remove the dependence on the JPA provider from the pom, allowing them to 
 be deployed to the central maven repo. 
 
 Test code for each of the JPA providers is in a separate 'jpatest-' project. This is 
 required to remove the dependence on the JPA provider from the pom, allowing them to 
 be deployed to the central maven repo. 
+
+The most extensive testing is done for eclipselink. Other persistence providers are only tested to verify that the integration works. 
+
index d361ebc3c7e864771ce4e584a3cb7334cde66542..64fde4e1bd7830927ad5bd732e33dad7641c8d47 100644 (file)
  */
 package org.wamblee.wicket.inject;
 
  */
 package org.wamblee.wicket.inject;
 
+import org.apache.wicket.Application;
 import org.apache.wicket.Component;
 import org.apache.wicket.application.IComponentInstantiationListener;
 import org.apache.wicket.Component;
 import org.apache.wicket.application.IComponentInstantiationListener;
+import org.apache.wicket.protocol.http.WebApplication;
 import org.wamblee.inject.InjectorFactoryBuilder;
 import org.wamblee.inject.SimpleInjector;
 
 /**
 import org.wamblee.inject.InjectorFactoryBuilder;
 import org.wamblee.inject.SimpleInjector;
 
 /**
+ * <p>
  * Component instantiation listener that injects references into a component 
  * using the injector mini-framework. Together with an implementation of the 
  * mini-framework, Contexts and Depenency Injection support can be provided. 
  * Component instantiation listener that injects references into a component 
  * using the injector mini-framework. Together with an implementation of the 
  * mini-framework, Contexts and Depenency Injection support can be provided. 
+ * </p>
  * 
  * 
+ * <p>
+ * To use this injector override {@link WebApplication#init()} and add the 
+ * listener: 
+ * </p>
+ * <pre>
+ *    &#064;Override
+ *    protected void init() {
+ *       super.init();
+ *       addComponentInstantiationListener(new ComponentInstantiationInjector());
+ *   }
+ * </pre>
  * 
  * @author Erik Brakkee
  */
  * 
  * @author Erik Brakkee
  */
index 2953aa0776975110ee6d75bf25559b41e2af0658..4aae401627006cd5fe26d0a1cd87ef6a5e741cbf 100644 (file)
@@ -35,8 +35,8 @@ import org.apache.wicket.protocol.http.WebRequestCycle;
  * This class provides an <em>Open Transaction in View</em> implementation for
  * wicket. It provides a custom request cycle that uses the
  * {@link UserTransaction} to make sure that all work is done within a single
  * This class provides an <em>Open Transaction in View</em> implementation for
  * wicket. It provides a custom request cycle that uses the
  * {@link UserTransaction} to make sure that all work is done within a single
- * transaction. In hibernate context, this is referred to as open session in
- * view.
+ * transaction. In Hibernate context, this is referred to as open session in
+ * view. 
  * </p>
  * 
  * <p>
  * </p>
  * 
  * <p>
index f1bafdbb9c5b357c545781dea73f62ada5744a2f..24a9bc786e3d114761fc9d306cd31edd8d21dde3 100644 (file)
@@ -16,8 +16,8 @@
       <ul>
         <li><a href="apidocs/org/wamblee/wicket/inject/package-summary.html">inject</a>: dependency
         injection in wicket components. </li>
       <ul>
         <li><a href="apidocs/org/wamblee/wicket/inject/package-summary.html">inject</a>: dependency
         injection in wicket components. </li>
-        <li><a href="apidocs/org/wamblee/wicket/transactions/package-summary.html">inject</a>:
-          integraiton with JTA transactions. In particular supporting "Open Transaction in View". </li>
+        <li><a href="apidocs/org/wamblee/wicket/transactions/package-summary.html">transactions</a>:
+          integration with JTA transactions. In particular supporting "Open Transaction in View". </li>
       </ul>
       <div class="infoMessage"><strong>Note</strong>:
         You need a Java EE 6 environment to use CDI. 
       </ul>
       <div class="infoMessage"><strong>Note</strong>:
         You need a Java EE 6 environment to use CDI. 
           <td>org.wamblee</td>
           <td>wamblee-wicket-joe</td>
         </tr>
           <td>org.wamblee</td>
           <td>wamblee-wicket-joe</td>
         </tr>
+        <tr>
+          <td>org.wamblee</td>
+          <td>wamblee-support-cdi</td>
+        </tr>
       </table>
     </section>
 
       </table>
     </section>