加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
springframework-3.2.6-port-spring-tx-to-javax.resources-1.7.patch 2.72 KB
一键复制 编辑 原始数据 按行查看 历史
yaokai13 提交于 2020-06-09 15:16 . Package init
From a080bcf000f0fd18996b5f442698b6d0a99e9583 Mon Sep 17 00:00:00 2001
From: Michal Srb <msrb@redhat.com>
Date: Thu, 16 Jan 2014 08:12:12 +0100
Subject: [PATCH] Port to javax.resources 1.7
---
.../jca/endpoint/GenericMessageEndpointFactory.java | 10 +++++++++-
.../springframework/jca/support/SimpleBootstrapContext.java | 11 +++++++++++
2 files changed, 20 insertions(+), 1 deletion(-)
diff --git a/spring-tx/src/main/java/org/springframework/jca/endpoint/GenericMessageEndpointFactory.java b/spring-tx/src/main/java/org/springframework/jca/endpoint/GenericMessageEndpointFactory.java
index 61f8db5..6b9137e 100644
--- a/spring-tx/src/main/java/org/springframework/jca/endpoint/GenericMessageEndpointFactory.java
+++ b/spring-tx/src/main/java/org/springframework/jca/endpoint/GenericMessageEndpointFactory.java
@@ -23,7 +23,6 @@ import javax.transaction.xa.XAResource;
import org.aopalliance.intercept.MethodInterceptor;
import org.aopalliance.intercept.MethodInvocation;
-
import org.springframework.aop.framework.ProxyFactory;
import org.springframework.aop.support.DelegatingIntroductionInterceptor;
import org.springframework.util.ReflectionUtils;
@@ -156,4 +155,13 @@ public class GenericMessageEndpointFactory extends AbstractMessageEndpointFactor
}
}
+
+ public String getActivationName() {
+ throw new UnsupportedOperationException("Not implemented yet");
+ }
+
+ public Class<?> getEndpointClass() {
+ throw new UnsupportedOperationException("Not implemented yet");
+ }
+
}
diff --git a/spring-tx/src/main/java/org/springframework/jca/support/SimpleBootstrapContext.java b/spring-tx/src/main/java/org/springframework/jca/support/SimpleBootstrapContext.java
index d26fea7..4cf12e4 100644
--- a/spring-tx/src/main/java/org/springframework/jca/support/SimpleBootstrapContext.java
+++ b/spring-tx/src/main/java/org/springframework/jca/support/SimpleBootstrapContext.java
@@ -21,7 +21,9 @@ import java.util.Timer;
import javax.resource.spi.BootstrapContext;
import javax.resource.spi.UnavailableException;
import javax.resource.spi.XATerminator;
+import javax.resource.spi.work.WorkContext;
import javax.resource.spi.work.WorkManager;
+import javax.transaction.TransactionSynchronizationRegistry;
/**
* Simple implementation of the JCA 1.5 {@link javax.resource.spi.BootstrapContext}
@@ -77,4 +79,13 @@ public class SimpleBootstrapContext implements BootstrapContext {
return new Timer();
}
+ public boolean isContextSupported(
+ Class<? extends WorkContext> workContextClass) {
+ throw new UnsupportedOperationException("Not implemented yet");
+ }
+
+ public TransactionSynchronizationRegistry getTransactionSynchronizationRegistry() {
+ throw new UnsupportedOperationException("Not implemented yet");
+ }
+
}
--
1.8.3.1
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化