org.jboss.jca.core.bootstrapcontext
Class BaseCloneableBootstrapContext

java.lang.Object
  extended by org.jboss.jca.core.bootstrapcontext.BaseCloneableBootstrapContext
All Implemented Interfaces:
Cloneable, javax.resource.spi.BootstrapContext, org.jboss.jca.core.api.bootstrap.CloneableBootstrapContext

public class BaseCloneableBootstrapContext
extends Object
implements org.jboss.jca.core.api.bootstrap.CloneableBootstrapContext

The base implementation of the cloneable bootstrap context

Author:
Jesper Pedersen

Constructor Summary
BaseCloneableBootstrapContext()
          Constructor
 
Method Summary
 org.jboss.jca.core.api.bootstrap.CloneableBootstrapContext clone()
          Clone the BootstrapContext implementation
 Timer createTimer()
          Create a timer
 TransactionSynchronizationRegistry getTransactionSynchronizationRegistry()
          Get the transaction synchronization registry
 org.jboss.jca.core.api.workmanager.WorkManager getWorkManager()
          Get the work manager
 javax.resource.spi.XATerminator getXATerminator()
          Get the XA terminator
 boolean isContextSupported(Class<? extends javax.resource.spi.work.WorkContext> workContextClass)
          Is the work context supported ?
 void setResourceAdapter(javax.resource.spi.ResourceAdapter ra)
          Set the resource adapter
 void setTransactionSynchronizationRegistry(TransactionSynchronizationRegistry tsr)
          Set the transaction synchronization registry
 void setWorkManager(org.jboss.jca.core.api.workmanager.WorkManager wm)
          Set the work manager
 void setXATerminator(javax.resource.spi.XATerminator xt)
          Set the XA terminator
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BaseCloneableBootstrapContext

public BaseCloneableBootstrapContext()
Constructor

Method Detail

setResourceAdapter

public void setResourceAdapter(javax.resource.spi.ResourceAdapter ra)
Set the resource adapter

Specified by:
setResourceAdapter in interface org.jboss.jca.core.api.bootstrap.CloneableBootstrapContext
Parameters:
ra - The handle

getTransactionSynchronizationRegistry

public TransactionSynchronizationRegistry getTransactionSynchronizationRegistry()
Get the transaction synchronization registry

Specified by:
getTransactionSynchronizationRegistry in interface javax.resource.spi.BootstrapContext
Returns:
The handle

setTransactionSynchronizationRegistry

public void setTransactionSynchronizationRegistry(TransactionSynchronizationRegistry tsr)
Set the transaction synchronization registry

Specified by:
setTransactionSynchronizationRegistry in interface org.jboss.jca.core.api.bootstrap.CloneableBootstrapContext
Parameters:
tsr - The handle

getWorkManager

public org.jboss.jca.core.api.workmanager.WorkManager getWorkManager()
Get the work manager

Specified by:
getWorkManager in interface javax.resource.spi.BootstrapContext
Returns:
The handle

setWorkManager

public void setWorkManager(org.jboss.jca.core.api.workmanager.WorkManager wm)
Set the work manager

Specified by:
setWorkManager in interface org.jboss.jca.core.api.bootstrap.CloneableBootstrapContext
Parameters:
wm - The handle

getXATerminator

public javax.resource.spi.XATerminator getXATerminator()
Get the XA terminator

Specified by:
getXATerminator in interface javax.resource.spi.BootstrapContext
Returns:
The handle

setXATerminator

public void setXATerminator(javax.resource.spi.XATerminator xt)
Set the XA terminator

Specified by:
setXATerminator in interface org.jboss.jca.core.api.bootstrap.CloneableBootstrapContext
Parameters:
xt - The handle

createTimer

public Timer createTimer()
Create a timer

Specified by:
createTimer in interface javax.resource.spi.BootstrapContext
Returns:
The timer

isContextSupported

public boolean isContextSupported(Class<? extends javax.resource.spi.work.WorkContext> workContextClass)
Is the work context supported ?

Specified by:
isContextSupported in interface javax.resource.spi.BootstrapContext
Parameters:
workContextClass - The work context class
Returns:
True if supported; otherwise false

clone

public org.jboss.jca.core.api.bootstrap.CloneableBootstrapContext clone()
                                                                 throws CloneNotSupportedException
Clone the BootstrapContext implementation

Specified by:
clone in interface org.jboss.jca.core.api.bootstrap.CloneableBootstrapContext
Overrides:
clone in class Object
Returns:
A copy of the implementation
Throws:
CloneNotSupportedException - Thrown if the copy operation isn't supported


Copyright © 2012 JBoss, by Red Hat (http://www.jboss.org/ironjacamar)