deltaspike-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gpetra...@apache.org
Subject git commit: DELTASPIKE-554 ContainerManagedTransactionStrategy
Date Mon, 31 Mar 2014 06:31:28 GMT
Repository: deltaspike
Updated Branches:
  refs/heads/master b37b5cd47 -> 1b4a23dd3


DELTASPIKE-554 ContainerManagedTransactionStrategy


Project: http://git-wip-us.apache.org/repos/asf/deltaspike/repo
Commit: http://git-wip-us.apache.org/repos/asf/deltaspike/commit/1b4a23dd
Tree: http://git-wip-us.apache.org/repos/asf/deltaspike/tree/1b4a23dd
Diff: http://git-wip-us.apache.org/repos/asf/deltaspike/diff/1b4a23dd

Branch: refs/heads/master
Commit: 1b4a23dd3fc15af4ca0a1d1905fd7074cee40711
Parents: b37b5cd
Author: gpetracek <gpetracek@apache.org>
Authored: Mon Mar 31 08:28:39 2014 +0200
Committer: gpetracek <gpetracek@apache.org>
Committed: Mon Mar 31 08:28:39 2014 +0200

----------------------------------------------------------------------
 .../ContainerManagedTransactionStrategy.java    | 42 ++++++++++++++++++++
 1 file changed, 42 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/deltaspike/blob/1b4a23dd/deltaspike/modules/jpa/impl/src/main/java/org/apache/deltaspike/jpa/impl/transaction/ContainerManagedTransactionStrategy.java
----------------------------------------------------------------------
diff --git a/deltaspike/modules/jpa/impl/src/main/java/org/apache/deltaspike/jpa/impl/transaction/ContainerManagedTransactionStrategy.java
b/deltaspike/modules/jpa/impl/src/main/java/org/apache/deltaspike/jpa/impl/transaction/ContainerManagedTransactionStrategy.java
new file mode 100644
index 0000000..090a07e
--- /dev/null
+++ b/deltaspike/modules/jpa/impl/src/main/java/org/apache/deltaspike/jpa/impl/transaction/ContainerManagedTransactionStrategy.java
@@ -0,0 +1,42 @@
+/*
+ * 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.apache.deltaspike.jpa.impl.transaction;
+
+import org.apache.deltaspike.jpa.spi.transaction.TransactionStrategy;
+
+import javax.enterprise.context.Dependent;
+import javax.enterprise.inject.Alternative;
+import javax.interceptor.InvocationContext;
+
+/**
+ * <p>{@link org.apache.deltaspike.jpa.spi.transaction.TransactionStrategy} for CMT
for the data-module.</p>
+ */
+@Dependent
+@Alternative
+@SuppressWarnings("UnusedDeclaration")
+public class ContainerManagedTransactionStrategy implements TransactionStrategy
+{
+    private static final long serialVersionUID = 70354806762739497L;
+
+    @Override
+    public Object execute(InvocationContext invocationContext) throws Exception
+    {
+        return invocationContext.proceed();
+    }
+}


Mime
View raw message