org.jboss.cdi.tck.tests.deployment.packaging.rar
Class TestResourceAdapter

java.lang.Object
  extended by org.jboss.cdi.tck.tests.deployment.packaging.rar.TestResourceAdapter
All Implemented Interfaces:
Serializable, javax.resource.spi.ResourceAdapter

public class TestResourceAdapter
extends Object
implements javax.resource.spi.ResourceAdapter, Serializable

TestResourceAdapter

Version:
$Revision: $
See Also:
Serialized Form

Constructor Summary
TestResourceAdapter()
          Default constructor
 
Method Summary
 void endpointActivation(javax.resource.spi.endpoint.MessageEndpointFactory endpointFactory, javax.resource.spi.ActivationSpec spec)
          This is called during the activation of a message endpoint.
 void endpointDeactivation(javax.resource.spi.endpoint.MessageEndpointFactory endpointFactory, javax.resource.spi.ActivationSpec spec)
          This is called when a message endpoint is deactivated.
 boolean equals(Object other)
          Indicates whether some other object is equal to this one.
 XAResource[] getXAResources(javax.resource.spi.ActivationSpec[] specs)
          This method is called by the application server during crash recovery.
 int hashCode()
          Returns a hash code value for the object.
 void start(javax.resource.spi.BootstrapContext ctx)
          This is called when a resource adapter instance is bootstrapped.
 void stop()
          This is called when a resource adapter instance is undeployed or during application server shutdown.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestResourceAdapter

public TestResourceAdapter()
Default constructor

Method Detail

endpointActivation

public void endpointActivation(javax.resource.spi.endpoint.MessageEndpointFactory endpointFactory,
                               javax.resource.spi.ActivationSpec spec)
                        throws javax.resource.ResourceException
This is called during the activation of a message endpoint.

Specified by:
endpointActivation in interface javax.resource.spi.ResourceAdapter
Parameters:
endpointFactory - A message endpoint factory instance.
spec - An activation spec JavaBean instance.
Throws:
javax.resource.ResourceException - generic exception

endpointDeactivation

public void endpointDeactivation(javax.resource.spi.endpoint.MessageEndpointFactory endpointFactory,
                                 javax.resource.spi.ActivationSpec spec)
This is called when a message endpoint is deactivated.

Specified by:
endpointDeactivation in interface javax.resource.spi.ResourceAdapter
Parameters:
endpointFactory - A message endpoint factory instance.
spec - An activation spec JavaBean instance.

start

public void start(javax.resource.spi.BootstrapContext ctx)
           throws javax.resource.spi.ResourceAdapterInternalException
This is called when a resource adapter instance is bootstrapped.

Specified by:
start in interface javax.resource.spi.ResourceAdapter
Parameters:
ctx - A bootstrap context containing references
Throws:
javax.resource.spi.ResourceAdapterInternalException - indicates bootstrap failure.

stop

public void stop()
This is called when a resource adapter instance is undeployed or during application server shutdown.

Specified by:
stop in interface javax.resource.spi.ResourceAdapter

getXAResources

public XAResource[] getXAResources(javax.resource.spi.ActivationSpec[] specs)
                            throws javax.resource.ResourceException
This method is called by the application server during crash recovery.

Specified by:
getXAResources in interface javax.resource.spi.ResourceAdapter
Parameters:
specs - An array of ActivationSpec JavaBeans
Returns:
An array of XAResource objects
Throws:
javax.resource.ResourceException - generic exception

hashCode

public int hashCode()
Returns a hash code value for the object.

Overrides:
hashCode in class Object
Returns:
A hash code value for this object.

equals

public boolean equals(Object other)
Indicates whether some other object is equal to this one.

Overrides:
equals in class Object
Parameters:
other - The reference object with which to compare.
Returns:
true if this object is the same as the obj argument, false otherwise.


Copyright © 2008-2012 Seam Framework. All Rights Reserved.