You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by rm...@apache.org on 2012/03/09 19:36:15 UTC
svn commit: r1298970 - in /openejb/trunk/openejb/examples:
spring-data-proxy-meta/README.md spring-data-proxy/README.md
Author: rmannibucau
Date: Fri Mar 9 18:36:15 2012
New Revision: 1298970
URL: http://svn.apache.org/viewvc?rev=1298970&view=rev
Log:
basic readme for spring-data samples
Added:
openejb/trunk/openejb/examples/spring-data-proxy-meta/README.md
openejb/trunk/openejb/examples/spring-data-proxy/README.md
Added: openejb/trunk/openejb/examples/spring-data-proxy-meta/README.md
URL: http://svn.apache.org/viewvc/openejb/trunk/openejb/examples/spring-data-proxy-meta/README.md?rev=1298970&view=auto
==============================================================================
--- openejb/trunk/openejb/examples/spring-data-proxy-meta/README.md (added)
+++ openejb/trunk/openejb/examples/spring-data-proxy-meta/README.md Fri Mar 9 18:36:15 2012
@@ -0,0 +1,12 @@
+# Spring Data With Meta sample #
+
+This example simply simplifies the usage of spring-data sample
+providing a meta annotation @SpringRepository to do all the dynamic procy EJB job.
+
+It replaces @Proxy and @Stateless annotations.
+
+Isn't it more comfortable?
+
+To do it we defined a meta annotation "Metatype" and used it.
+
+The proxy implementation is the same than for spring-data sample.
Added: openejb/trunk/openejb/examples/spring-data-proxy/README.md
URL: http://svn.apache.org/viewvc/openejb/trunk/openejb/examples/spring-data-proxy/README.md?rev=1298970&view=auto
==============================================================================
--- openejb/trunk/openejb/examples/spring-data-proxy/README.md (added)
+++ openejb/trunk/openejb/examples/spring-data-proxy/README.md Fri Mar 9 18:36:15 2012
@@ -0,0 +1,14 @@
+# Spring Data sample #
+
+This example uses OpenEJB hooks to replace an EJB implementation by a proxy
+to uses Spring Data in your preferred container.
+
+It is pretty simple: simply provide to OpenEJB an InvocationHandler using delegating to spring data
+and that's it!
+
+It is what is done in org.superbiz.dynamic.SpringDataProxy.
+
+It contains a little trick: even if it is not annotated "implementingInterfaceClass" attribute
+is injected by OpenEJB to get the interface.
+
+Then we simply create the Spring Data repository and delegate to it.