javax.resource.spi.XATerminator Java Examples

The following examples show how to use javax.resource.spi.XATerminator. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: BootstrapContextImpl.java    From ironjacamar with Eclipse Public License 1.0 6 votes vote down vote up
/**
 * 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;
}
 
Example #2
Source File: BaseCloneableBootstrapContext.java    From lams with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Set the XA terminator
 * @param xt The handle
 */
public void setXATerminator(XATerminator xt)
{
   this.xaTerminator = xt;
}
 
Example #3
Source File: SimpleBootstrapContext.java    From tomee with Apache License 2.0 4 votes vote down vote up
public XATerminator getXATerminator() {
    return xaTerminator;
}
 
Example #4
Source File: SimpleBootstrapContext.java    From tomee with Apache License 2.0 4 votes vote down vote up
public SimpleBootstrapContext(final WorkManager workManager, final XATerminator xaTerminator) {
    this.workManager = workManager;
    this.xaTerminator = xaTerminator;
}
 
Example #5
Source File: BootstrapContextImpl.java    From ironjacamar with Eclipse Public License 1.0 4 votes vote down vote up
/**
 * {@inheritDoc}
 */
public XATerminator getXATerminator()
{
   return xaTerminator;
}
 
Example #6
Source File: BootstrapContextImpl.java    From ironjacamar with Eclipse Public License 1.0 4 votes vote down vote up
@Override
public void setXATerminator(XATerminator xt)
{
   this.xaTerminator = xt;
}
 
Example #7
Source File: BootstrapContext.java    From activemq-artemis with Apache License 2.0 4 votes vote down vote up
@Override
public XATerminator getXATerminator() {
   return null;
}
 
Example #8
Source File: ActiveMQRATestBase.java    From activemq-artemis with Apache License 2.0 4 votes vote down vote up
@Override
public XATerminator getXATerminator() {
   return null;
}
 
Example #9
Source File: SimpleBootstrapContext.java    From spring4-understanding with Apache License 2.0 4 votes vote down vote up
@Override
public XATerminator getXATerminator() {
	return this.xaTerminator;
}
 
Example #10
Source File: BaseCloneableBootstrapContext.java    From lams with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Get the XA terminator
 * @return The handle
 */
public XATerminator getXATerminator()
{
   return xaTerminator;
}
 
Example #11
Source File: SimpleBootstrapContext.java    From lams with GNU General Public License v2.0 4 votes vote down vote up
@Override
public XATerminator getXATerminator() {
	return this.xaTerminator;
}
 
Example #12
Source File: SimpleBootstrapContext.java    From java-technology-stack with MIT License 4 votes vote down vote up
@Override
@Nullable
public XATerminator getXATerminator() {
	return this.xaTerminator;
}
 
Example #13
Source File: SimpleBootstrapContext.java    From spring-analysis-note with MIT License 4 votes vote down vote up
@Override
@Nullable
public XATerminator getXATerminator() {
	return this.xaTerminator;
}
 
Example #14
Source File: SimpleBootstrapContext.java    From java-technology-stack with MIT License 3 votes vote down vote up
/**
 * Create a new SimpleBootstrapContext for the given WorkManager, XATerminator
 * and TransactionSynchronizationRegistry.
 * @param workManager the JCA WorkManager to use (may be {@code null})
 * @param xaTerminator the JCA XATerminator to use (may be {@code null})
 * @param transactionSynchronizationRegistry the TransactionSynchronizationRegistry
 * to use (may be {@code null})
 * @since 5.0
 */
public SimpleBootstrapContext(@Nullable WorkManager workManager, @Nullable XATerminator xaTerminator,
		@Nullable TransactionSynchronizationRegistry transactionSynchronizationRegistry) {

	this.workManager = workManager;
	this.xaTerminator = xaTerminator;
	this.transactionSynchronizationRegistry = transactionSynchronizationRegistry;
}
 
Example #15
Source File: SimpleBootstrapContext.java    From spring-analysis-note with MIT License 3 votes vote down vote up
/**
 * Create a new SimpleBootstrapContext for the given WorkManager, XATerminator
 * and TransactionSynchronizationRegistry.
 * @param workManager the JCA WorkManager to use (may be {@code null})
 * @param xaTerminator the JCA XATerminator to use (may be {@code null})
 * @param transactionSynchronizationRegistry the TransactionSynchronizationRegistry
 * to use (may be {@code null})
 * @since 5.0
 */
public SimpleBootstrapContext(@Nullable WorkManager workManager, @Nullable XATerminator xaTerminator,
		@Nullable TransactionSynchronizationRegistry transactionSynchronizationRegistry) {

	this.workManager = workManager;
	this.xaTerminator = xaTerminator;
	this.transactionSynchronizationRegistry = transactionSynchronizationRegistry;
}
 
Example #16
Source File: SimpleBootstrapContext.java    From lams with GNU General Public License v2.0 2 votes vote down vote up
/**
 * 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;
}
 
Example #17
Source File: ResourceAdapterFactoryBean.java    From spring-analysis-note with MIT License 2 votes vote down vote up
/**
 * Specify the JCA XATerminator to use for bootstrapping the ResourceAdapter.
 * @see #setBootstrapContext
 */
public void setXaTerminator(XATerminator xaTerminator) {
	this.xaTerminator = xaTerminator;
}
 
Example #18
Source File: CloneableBootstrapContext.java    From lams with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Set the XA terminator
 * @param xt The handle
 */
public void setXATerminator(XATerminator xt);
 
Example #19
Source File: ResourceAdapterFactoryBean.java    From spring4-understanding with Apache License 2.0 2 votes vote down vote up
/**
 * Specify the JCA XATerminator to use for bootstrapping the ResourceAdapter.
 * @see #setBootstrapContext
 */
public void setXaTerminator(XATerminator xaTerminator) {
	this.xaTerminator = xaTerminator;
}
 
Example #20
Source File: SimpleBootstrapContext.java    From spring4-understanding with Apache License 2.0 2 votes vote down vote up
/**
 * 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;
}
 
Example #21
Source File: ResourceAdapterFactoryBean.java    From lams with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Specify the JCA XATerminator to use for bootstrapping the ResourceAdapter.
 * @see #setBootstrapContext
 */
public void setXaTerminator(XATerminator xaTerminator) {
	this.xaTerminator = xaTerminator;
}
 
Example #22
Source File: SimpleBootstrapContext.java    From java-technology-stack with MIT License 2 votes vote down vote up
/**
 * 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(@Nullable WorkManager workManager, @Nullable XATerminator xaTerminator) {
	this.workManager = workManager;
	this.xaTerminator = xaTerminator;
}
 
Example #23
Source File: ResourceAdapterFactoryBean.java    From java-technology-stack with MIT License 2 votes vote down vote up
/**
 * Specify the JCA XATerminator to use for bootstrapping the ResourceAdapter.
 * @see #setBootstrapContext
 */
public void setXaTerminator(XATerminator xaTerminator) {
	this.xaTerminator = xaTerminator;
}
 
Example #24
Source File: CloneableBootstrapContext.java    From ironjacamar with Eclipse Public License 1.0 2 votes vote down vote up
/**
 * Set the XA terminator
 * @param xt The handle
 */
void setXATerminator(XATerminator xt);
 
Example #25
Source File: SimpleBootstrapContext.java    From spring-analysis-note with MIT License 2 votes vote down vote up
/**
 * 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(@Nullable WorkManager workManager, @Nullable XATerminator xaTerminator) {
	this.workManager = workManager;
	this.xaTerminator = xaTerminator;
}