org.jboss.test.jca.inflow
Class TestResourceAdapter

java.lang.Object
  extended byorg.jboss.test.jca.inflow.TestResourceAdapter
All Implemented Interfaces:
ResourceAdapter (src) , TestResourceAdapterMBean (src)

public class TestResourceAdapter
extends java.lang.Object
implements ResourceAdapter (src) , TestResourceAdapterMBean (src)

A TestResourceAdapter.


Field Summary
static ObjectName (src) mbean
           
 
Constructor Summary
TestResourceAdapter()
           
 
Method Summary
 void endpointActivation(MessageEndpointFactory (src)  endpointFactory, ActivationSpec (src)  spec)
          Activates the endpoint factory
 void endpointDeactivation(MessageEndpointFactory (src)  endpointFactory, ActivationSpec (src)  spec)
          Deactivates the endpoint
 XAResource (src) [] getXAResources(ActivationSpec (src) [] specs)
          Called by the application server during recovery
 void start(BootstrapContext (src)  ctx)
          Used to bootstrap the resource adapter
 void stop()
          Used to stop the resource adapter
 TestResourceAdapterInflowResults (src) testInflow()
           
 TestResourceAdapterTimerResults (src) testTimer()
           
 TestResourceAdapterTxInflowResults (src) testTxInflow()
           
 TestResourceAdapterWorkManagerResults (src) testWorkManager()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mbean

public static final ObjectName (src)  mbean
Constructor Detail

TestResourceAdapter

public TestResourceAdapter()
Method Detail

testInflow

public TestResourceAdapterInflowResults (src)  testInflow()
                                            throws java.lang.Exception
Specified by:
testInflow in interface TestResourceAdapterMBean (src)
Throws:
java.lang.Exception

testWorkManager

public TestResourceAdapterWorkManagerResults (src)  testWorkManager()
                                                      throws java.lang.Exception
Specified by:
testWorkManager in interface TestResourceAdapterMBean (src)
Throws:
java.lang.Exception

testTimer

public TestResourceAdapterTimerResults (src)  testTimer()
                                          throws java.lang.Exception
Specified by:
testTimer in interface TestResourceAdapterMBean (src)
Throws:
java.lang.Exception

testTxInflow

public TestResourceAdapterTxInflowResults (src)  testTxInflow()
                                                throws java.lang.Exception
Specified by:
testTxInflow in interface TestResourceAdapterMBean (src)
Throws:
java.lang.Exception

endpointActivation

public void endpointActivation(MessageEndpointFactory (src)  endpointFactory,
                               ActivationSpec (src)  spec)
                        throws ResourceException (src) 
Description copied from interface: ResourceAdapter (src)
Activates the endpoint factory

Specified by:
endpointActivation in interface ResourceAdapter (src)
Parameters:
endpointFactory - the endpoint factory
spec - the activation spec
Throws:
ResourceException (src) - for a generic error

endpointDeactivation

public void endpointDeactivation(MessageEndpointFactory (src)  endpointFactory,
                                 ActivationSpec (src)  spec)
Description copied from interface: ResourceAdapter (src)
Deactivates the endpoint

Specified by:
endpointDeactivation in interface ResourceAdapter (src)
Parameters:
endpointFactory - the endpoint factory
spec - the activation spec

getXAResources

public XAResource (src) [] getXAResources(ActivationSpec (src) [] specs)
                            throws ResourceException (src) 
Description copied from interface: ResourceAdapter (src)
Called by the application server during recovery

Specified by:
getXAResources in interface ResourceAdapter (src)
Parameters:
specs - the activation specs
Returns:
the XAResources used to perform the recovery
Throws:
ResourceException (src) - for a generic error

start

public void start(BootstrapContext (src)  ctx)
           throws ResourceAdapterInternalException (src) 
Description copied from interface: ResourceAdapter (src)
Used to bootstrap the resource adapter

Specified by:
start in interface ResourceAdapter (src)
Parameters:
ctx - the bootstrap context
Throws:
ResourceAdapterInternalException (src) - for a bootstrap failure

stop

public void stop()
Description copied from interface: ResourceAdapter (src)
Used to stop the resource adapter

Specified by:
stop in interface ResourceAdapter (src)