Author: dblevins
Date: Tue Apr 12 00:56:02 2011
New Revision: 1091266
URL: http://svn.apache.org/viewvc?rev=1091266&view=rev
Log:
Meta version of movies-complete
Added:
openejb/trunk/openejb3/examples/movies-complete-meta/
- copied from r1091264, openejb/trunk/openejb3/examples/movies-complete/
openejb/trunk/openejb3/examples/movies-complete-meta/src/main/java/org/superbiz/injection/tx/AddInterceptor.java
(with props)
openejb/trunk/openejb3/examples/movies-complete-meta/src/main/java/org/superbiz/injection/tx/Movies.java
- copied, changed from r1091264,
openejb/trunk/openejb3/examples/movies-complete/src/main/java/org/superbiz/injection/tx/MoviesMeta.java
openejb/trunk/openejb3/examples/movies-complete-meta/src/main/java/org/superbiz/injection/tx/api/MovieUnit.java
(with props)
Removed:
openejb/trunk/openejb3/examples/movies-complete-meta/src/main/java/org/superbiz/injection/tx/MoviesMeta.java
Modified:
openejb/trunk/openejb3/examples/movies-complete-meta/pom.xml
Modified: openejb/trunk/openejb3/examples/movies-complete-meta/pom.xml
URL:
http://svn.apache.org/viewvc/openejb/trunk/openejb3/examples/movies-complete-meta/pom.xml?rev=1091266&r1=1091264&r2=1091266&view=diff
==============================================================================
--- openejb/trunk/openejb3/examples/movies-complete-meta/pom.xml (original)
+++ openejb/trunk/openejb3/examples/movies-complete-meta/pom.xml Tue Apr 12
00:56:02 2011
@@ -23,10 +23,10 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.superbiz</groupId>
- <artifactId>movies-complete</artifactId>
+ <artifactId>movies-complete-meta</artifactId>
<packaging>jar</packaging>
<version>1.1-SNAPSHOT</version>
- <name>OpenEJB :: Examples :: Movies Complete</name>
+ <name>OpenEJB :: Examples :: Movies Complete (Meta)</name>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
Added:
openejb/trunk/openejb3/examples/movies-complete-meta/src/main/java/org/superbiz/injection/tx/AddInterceptor.java
URL:
http://svn.apache.org/viewvc/openejb/trunk/openejb3/examples/movies-complete-meta/src/main/java/org/superbiz/injection/tx/AddInterceptor.java?rev=1091266&view=auto
==============================================================================
---
openejb/trunk/openejb3/examples/movies-complete-meta/src/main/java/org/superbiz/injection/tx/AddInterceptor.java
(added)
+++
openejb/trunk/openejb3/examples/movies-complete-meta/src/main/java/org/superbiz/injection/tx/AddInterceptor.java
Tue Apr 12 00:56:02 2011
@@ -0,0 +1,32 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.superbiz.injection.tx;
+
+import javax.interceptor.AroundInvoke;
+import javax.interceptor.InvocationContext;
+
+/**
+ * @version $Revision$ $Date$
+ */
+public class AddInterceptor {
+
+ @AroundInvoke
+ public Object invoke(InvocationContext context) throws Exception {
+ // Log Add
+ return context.proceed();
+ }
+}
\ No newline at end of file
Propchange:
openejb/trunk/openejb3/examples/movies-complete-meta/src/main/java/org/superbiz/injection/tx/AddInterceptor.java
------------------------------------------------------------------------------
svn:eol-style = native
Copied:
openejb/trunk/openejb3/examples/movies-complete-meta/src/main/java/org/superbiz/injection/tx/Movies.java
(from r1091264,
openejb/trunk/openejb3/examples/movies-complete/src/main/java/org/superbiz/injection/tx/MoviesMeta.java)
URL:
http://svn.apache.org/viewvc/openejb/trunk/openejb3/examples/movies-complete-meta/src/main/java/org/superbiz/injection/tx/Movies.java?p2=openejb/trunk/openejb3/examples/movies-complete-meta/src/main/java/org/superbiz/injection/tx/Movies.java&p1=openejb/trunk/openejb3/examples/movies-complete/src/main/java/org/superbiz/injection/tx/MoviesMeta.java&r1=1091264&r2=1091266&rev=1091266&view=diff
==============================================================================
---
openejb/trunk/openejb3/examples/movies-complete/src/main/java/org/superbiz/injection/tx/MoviesMeta.java
(original)
+++
openejb/trunk/openejb3/examples/movies-complete-meta/src/main/java/org/superbiz/injection/tx/Movies.java
Tue Apr 12 00:56:02 2011
@@ -37,7 +37,7 @@ import java.util.List;
//START SNIPPET: code
@Stateful
-public class MoviesMeta {
+public class Movies {
@MovieUnit
private EntityManager entityManager;
Added:
openejb/trunk/openejb3/examples/movies-complete-meta/src/main/java/org/superbiz/injection/tx/api/MovieUnit.java
URL:
http://svn.apache.org/viewvc/openejb/trunk/openejb3/examples/movies-complete-meta/src/main/java/org/superbiz/injection/tx/api/MovieUnit.java?rev=1091266&view=auto
==============================================================================
---
openejb/trunk/openejb3/examples/movies-complete-meta/src/main/java/org/superbiz/injection/tx/api/MovieUnit.java
(added)
+++
openejb/trunk/openejb3/examples/movies-complete-meta/src/main/java/org/superbiz/injection/tx/api/MovieUnit.java
Tue Apr 12 00:56:02 2011
@@ -0,0 +1,33 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.superbiz.injection.tx.api;
+
+import javax.persistence.PersistenceContext;
+import javax.persistence.PersistenceContextType;
+import java.lang.annotation.ElementType;
+import java.lang.annotation.Retention;
+import java.lang.annotation.RetentionPolicy;
+import java.lang.annotation.Target;
+
+
+@Metatype
+@Target({ElementType.METHOD, ElementType.FIELD})
+@Retention(RetentionPolicy.RUNTIME)
+
+@PersistenceContext(name = "movie-unit", unitName = "movie-unit", type =
PersistenceContextType.EXTENDED)
+public @interface MovieUnit {
+}
Propchange:
openejb/trunk/openejb3/examples/movies-complete-meta/src/main/java/org/superbiz/injection/tx/api/MovieUnit.java
------------------------------------------------------------------------------
svn:eol-style = native