public class TestResourceAdapter extends Object implements javax.resource.spi.ResourceAdapter, Serializable
| Constructor and Description |
|---|
TestResourceAdapter()
Default constructor
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
public void endpointActivation(javax.resource.spi.endpoint.MessageEndpointFactory endpointFactory,
javax.resource.spi.ActivationSpec spec)
throws javax.resource.ResourceException
endpointActivation in interface javax.resource.spi.ResourceAdapterendpointFactory - A message endpoint factory instance.spec - An activation spec JavaBean instance.javax.resource.ResourceException - generic exceptionpublic void endpointDeactivation(javax.resource.spi.endpoint.MessageEndpointFactory endpointFactory,
javax.resource.spi.ActivationSpec spec)
endpointDeactivation in interface javax.resource.spi.ResourceAdapterendpointFactory - A message endpoint factory instance.spec - An activation spec JavaBean instance.public void start(javax.resource.spi.BootstrapContext ctx)
throws javax.resource.spi.ResourceAdapterInternalException
start in interface javax.resource.spi.ResourceAdapterctx - A bootstrap context containing referencesjavax.resource.spi.ResourceAdapterInternalException - indicates bootstrap failure.public void stop()
stop in interface javax.resource.spi.ResourceAdapterpublic XAResource[] getXAResources(javax.resource.spi.ActivationSpec[] specs) throws javax.resource.ResourceException
getXAResources in interface javax.resource.spi.ResourceAdapterspecs - An array of ActivationSpec JavaBeansjavax.resource.ResourceException - generic exceptionpublic int hashCode()
Copyright © 2008-2015 Seam Framework. All Rights Reserved.