本文整理汇总了Java中javax.resource.spi.XATerminator类的典型用法代码示例。如果您正苦于以下问题:Java XATerminator类的具体用法?Java XATerminator怎么用?Java XATerminator使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
XATerminator类属于javax.resource.spi包,在下文中一共展示了XATerminator类的17个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: BootstrapContextImpl
import javax.resource.spi.XATerminator; //导入依赖的package包/类
/**
* Constructor
* @param wm The WorkManager
* @param tsr The TransactionSynchronizationRegistry
* @param terminator The XATerminator
* @param validatorFactory the ValidatorFactory
*/
public BootstrapContextImpl(WorkManager wm,
TransactionSynchronizationRegistry tsr,
XATerminator terminator,
ValidatorFactory validatorFactory)
{
this.workManager = wm;
this.transactionSynchronizationRegistry = tsr;
this.xaTerminator = terminator;
this.supportedContexts = new HashSet<Class>(3);
this.validatorFactory = validatorFactory;
this.supportedContexts.add(HintsContext.class);
this.supportedContexts.add(SecurityContext.class);
this.supportedContexts.add(TransactionContext.class);
this.timers = null;
}
开发者ID:ironjacamar,项目名称:ironjacamar,代码行数:24,代码来源:BootstrapContextImpl.java
示例2: start
import javax.resource.spi.XATerminator; //导入依赖的package包/类
public void start(EmbeddedConfiguration config, boolean realBufferMangaer) {
boolean detectTxn = true;
if (config.getTransactionManager() == null) {
config.setTransactionManager(SimpleMock.createSimpleMock(TransactionManager.class));
this.transactionService.setXaTerminator(SimpleMock.createSimpleMock(XATerminator.class));
this.transactionService.setWorkManager(new FakeWorkManager());
detectTxn = false;
}
this.repo.odbcEnabled();
this.realBufferManager = realBufferMangaer;
start(config);
this.transactionService.setDetectTransactions(detectTxn);
}
开发者ID:kenweezy,项目名称:teiid,代码行数:14,代码来源:FakeServer.java
示例3: setUp
import javax.resource.spi.XATerminator; //导入依赖的package包/类
@Before public void setUp() throws Exception {
server = new TransactionServerImpl();
xaTerminator = Mockito.mock(XATerminator.class);
tm = Mockito.mock(TransactionManager.class);
txn = Mockito.mock(javax.transaction.Transaction.class);
Mockito.stub(tm.getTransaction()).toReturn(txn);
Mockito.stub(tm.suspend()).toReturn(txn);
server.setXaTerminator(xaTerminator);
server.setTransactionManager(tm);
server.setWorkManager(new FakeWorkManager());
}
开发者ID:kenweezy,项目名称:teiid,代码行数:12,代码来源:TestTransactionServer.java
示例4: getXATerminator
import javax.resource.spi.XATerminator; //导入依赖的package包/类
@Override
public XATerminator getXATerminator() {
return this.xaTerminator;
}
开发者ID:lamsfoundation,项目名称:lams,代码行数:5,代码来源:SimpleBootstrapContext.java
示例5: getXATerminator
import javax.resource.spi.XATerminator; //导入依赖的package包/类
public XATerminator getXATerminator() {
return ctx.getXATerminator();
}
开发者ID:kenweezy,项目名称:teiid,代码行数:4,代码来源:BasicResourceAdapter.java
示例6: setXaTerminator
import javax.resource.spi.XATerminator; //导入依赖的package包/类
public void setXaTerminator(XATerminator xaTerminator) {
this.xaTerminator = xaTerminator;
}
开发者ID:kenweezy,项目名称:teiid,代码行数:4,代码来源:TransactionServerImpl.java
示例7: FakeTransactionService
import javax.resource.spi.XATerminator; //导入依赖的package包/类
public FakeTransactionService() {
this.setTransactionManager(SimpleMock.createSimpleMock(TransactionManager.class));
this.setXaTerminator(SimpleMock.createSimpleMock(XATerminator.class));
this.setWorkManager(new FakeWorkManager());
}
开发者ID:kenweezy,项目名称:teiid,代码行数:6,代码来源:FakeTransactionService.java
示例8: getXaTerminatorInjector
import javax.resource.spi.XATerminator; //导入依赖的package包/类
public InjectedValue<XATerminator> getXaTerminatorInjector() {
return xaTerminatorInjector;
}
开发者ID:kenweezy,项目名称:teiid,代码行数:4,代码来源:DQPCoreService.java
示例9: getXATerminator
import javax.resource.spi.XATerminator; //导入依赖的package包/类
@Override
public XATerminator getXATerminator() {
return null;
}
开发者ID:apache,项目名称:activemq-artemis,代码行数:5,代码来源:ActiveMQRATestBase.java
示例10: getXATerminator
import javax.resource.spi.XATerminator; //导入依赖的package包/类
public XATerminator getXATerminator() {
return this.xaTerminator;
}
开发者ID:deathspeeder,项目名称:class-guard,代码行数:4,代码来源:SimpleBootstrapContext.java
示例11: setXATerminator
import javax.resource.spi.XATerminator; //导入依赖的package包/类
@Override
public void setXATerminator(XATerminator xt)
{
this.xaTerminator = xt;
}
开发者ID:ironjacamar,项目名称:ironjacamar,代码行数:6,代码来源:BootstrapContextImpl.java
示例12: getXATerminator
import javax.resource.spi.XATerminator; //导入依赖的package包/类
/**
* {@inheritDoc}
*/
public XATerminator getXATerminator()
{
return xaTerminator;
}
开发者ID:ironjacamar,项目名称:ironjacamar,代码行数:8,代码来源:BootstrapContextImpl.java
示例13: SimpleBootstrapContext
import javax.resource.spi.XATerminator; //导入依赖的package包/类
public SimpleBootstrapContext(final WorkManager workManager, final XATerminator xaTerminator) {
this.workManager = workManager;
this.xaTerminator = xaTerminator;
}
开发者ID:apache,项目名称:tomee,代码行数:5,代码来源:SimpleBootstrapContext.java
示例14: getXATerminator
import javax.resource.spi.XATerminator; //导入依赖的package包/类
public XATerminator getXATerminator() {
return xaTerminator;
}
开发者ID:apache,项目名称:tomee,代码行数:4,代码来源:SimpleBootstrapContext.java
示例15: setXaTerminator
import javax.resource.spi.XATerminator; //导入依赖的package包/类
/**
* Specify the JCA XATerminator to use for bootstrapping the ResourceAdapter.
* @see #setBootstrapContext
*/
public void setXaTerminator(XATerminator xaTerminator) {
this.xaTerminator = xaTerminator;
}
开发者ID:lamsfoundation,项目名称:lams,代码行数:8,代码来源:ResourceAdapterFactoryBean.java
示例16: SimpleBootstrapContext
import javax.resource.spi.XATerminator; //导入依赖的package包/类
/**
* Create a new SimpleBootstrapContext for the given WorkManager and XATerminator.
* @param workManager the JCA WorkManager to use (may be {@code null})
* @param xaTerminator the JCA XATerminator to use (may be {@code null})
*/
public SimpleBootstrapContext(WorkManager workManager, XATerminator xaTerminator) {
this.workManager = workManager;
this.xaTerminator = xaTerminator;
}
开发者ID:lamsfoundation,项目名称:lams,代码行数:10,代码来源:SimpleBootstrapContext.java
示例17: setXATerminator
import javax.resource.spi.XATerminator; //导入依赖的package包/类
/**
* Set the XA terminator
* @param xt The handle
*/
void setXATerminator(XATerminator xt);
开发者ID:ironjacamar,项目名称:ironjacamar,代码行数:6,代码来源:CloneableBootstrapContext.java
注:本文中的javax.resource.spi.XATerminator类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论