From 518af502068de1be15b0f83be89030d6e9bf081f Mon Sep 17 00:00:00 2001 From: Erik Brakkee Date: Sat, 17 Jul 2010 17:42:39 +0000 Subject: [PATCH] --- test/README.txt | 5 +++-- .../inject/ComponentInstantiationInjector.java | 15 +++++++++++++++ .../OpenTransactionInViewRequestCycle.java | 4 ++-- wicket/joe/src/site/xdoc/index.xml | 8 ++++++-- 4 files changed, 26 insertions(+), 6 deletions(-) diff --git a/test/README.txt b/test/README.txt index 6879926d..ff94a31b 100644 --- a/test/README.txt +++ b/test/README.txt @@ -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. + +The most extensive testing is done for eclipselink. Other persistence providers are only tested to verify that the integration works. + diff --git a/wicket/joe/src/main/java/org/wamblee/wicket/inject/ComponentInstantiationInjector.java b/wicket/joe/src/main/java/org/wamblee/wicket/inject/ComponentInstantiationInjector.java index d361ebc3..64fde4e1 100644 --- a/wicket/joe/src/main/java/org/wamblee/wicket/inject/ComponentInstantiationInjector.java +++ b/wicket/joe/src/main/java/org/wamblee/wicket/inject/ComponentInstantiationInjector.java @@ -15,16 +15,31 @@ */ 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; /** + *

* 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. + *

* + *

+ * To use this injector override {@link WebApplication#init()} and add the + * listener: + *

+ *
+ *    @Override
+ *    protected void init() {
+ *       super.init();
+ *       addComponentInstantiationListener(new ComponentInstantiationInjector());
+ *   }
+ * 
* * @author Erik Brakkee */ diff --git a/wicket/joe/src/main/java/org/wamblee/wicket/transactions/OpenTransactionInViewRequestCycle.java b/wicket/joe/src/main/java/org/wamblee/wicket/transactions/OpenTransactionInViewRequestCycle.java index 2953aa07..4aae4016 100644 --- a/wicket/joe/src/main/java/org/wamblee/wicket/transactions/OpenTransactionInViewRequestCycle.java +++ b/wicket/joe/src/main/java/org/wamblee/wicket/transactions/OpenTransactionInViewRequestCycle.java @@ -35,8 +35,8 @@ import org.apache.wicket.protocol.http.WebRequestCycle; * This class provides an Open Transaction in View 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. *

* *

diff --git a/wicket/joe/src/site/xdoc/index.xml b/wicket/joe/src/site/xdoc/index.xml index f1bafdbb..24a9bc78 100644 --- a/wicket/joe/src/site/xdoc/index.xml +++ b/wicket/joe/src/site/xdoc/index.xml @@ -16,8 +16,8 @@

Note: You need a Java EE 6 environment to use CDI. @@ -35,6 +35,10 @@ org.wamblee wamblee-wicket-joe + + org.wamblee + wamblee-support-cdi + -- 2.31.1