org.jboss.test.jca.fs
Class FSDirContextAdaptor

java.lang.Object
  extended byorg.jboss.test.jca.fs.FSDirContextAdaptor
All Implemented Interfaces:
ResourceAdapter (src)

public class FSDirContextAdaptor
extends java.lang.Object
implements ResourceAdapter (src)

The ResourceAdapter for the file system based DirContext


Constructor Summary
FSDirContextAdaptor()
           
 
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
 WorkManager (src) getWorkManager()
          Get the work manager
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FSDirContextAdaptor

public FSDirContextAdaptor()
Method Detail

getWorkManager

public WorkManager (src)  getWorkManager()
Get the work manager

Returns:
the work manager

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)

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