-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.
+
+The most extensive testing is done for eclipselink. Other persistence providers are only tested to verify that the integration works.
+
*/
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.protocol.http.WebApplication;
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.
+ * </p>
*
+ * <p>
+ * To use this injector override {@link WebApplication#init()} and add the
+ * listener:
+ * </p>
+ * <pre>
+ * @Override
+ * protected void init() {
+ * super.init();
+ * addComponentInstantiationListener(new ComponentInstantiationInjector());
+ * }
+ * </pre>
*
* @author Erik Brakkee
*/
* 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>
<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.
<td>org.wamblee</td>
<td>wamblee-wicket-joe</td>
</tr>
+ <tr>
+ <td>org.wamblee</td>
+ <td>wamblee-support-cdi</td>
+ </tr>
</table>
</section>