Class MDCompleteRAImpl
java.lang.Object
com.sun.ts.tests.common.connector.whitebox.mdcomplete.MDCompleteRAImpl
- All Implemented Interfaces:
jakarta.resource.spi.ResourceAdapter
,Serializable
@Connector(description="CTS Test Resource Adapter with No DD",
licenseDescription="CTS License Required",
licenseRequired=true,
authMechanisms=@AuthenticationMechanism(credentialInterface=PasswordCredential,authMechanism="BasicPassword",description="Basic Password Authentication"),
reauthenticationSupport=false,
securityPermissions=@SecurityPermission,
transactionSupport=NoTransaction,
requiredWorkContexts={jakarta.resource.spi.work.HintsContext.class,jakarta.resource.spi.work.TransactionContext.class,jakarta.resource.spi.work.SecurityContext.class})
public class MDCompleteRAImpl
extends Object
implements jakarta.resource.spi.ResourceAdapter, Serializable
This is a sample resource adapter that will use some ra.xml info. This RA is used to assist with verifying the server
supports annotations when there is no ra.xml (Assertion 268) and the transaction support is Local.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
endpointActivation
(jakarta.resource.spi.endpoint.MessageEndpointFactory factory, jakarta.resource.spi.ActivationSpec spec) void
endpointDeactivation
(jakarta.resource.spi.endpoint.MessageEndpointFactory ep, jakarta.resource.spi.ActivationSpec spec) boolean
getXAResources
(jakarta.resource.spi.ActivationSpec[] specs) int
hashCode()
void
void
start
(jakarta.resource.spi.BootstrapContext bsc) void
stop()
-
Constructor Details
-
MDCompleteRAImpl
public MDCompleteRAImpl()constructor
-
-
Method Details
-
start
public void start(jakarta.resource.spi.BootstrapContext bsc) throws jakarta.resource.spi.ResourceAdapterInternalException - Specified by:
start
in interfacejakarta.resource.spi.ResourceAdapter
- Throws:
jakarta.resource.spi.ResourceAdapterInternalException
-
stop
public void stop()- Specified by:
stop
in interfacejakarta.resource.spi.ResourceAdapter
-
endpointActivation
public void endpointActivation(jakarta.resource.spi.endpoint.MessageEndpointFactory factory, jakarta.resource.spi.ActivationSpec spec) throws jakarta.resource.NotSupportedException - Specified by:
endpointActivation
in interfacejakarta.resource.spi.ResourceAdapter
- Throws:
jakarta.resource.NotSupportedException
-
endpointDeactivation
public void endpointDeactivation(jakarta.resource.spi.endpoint.MessageEndpointFactory ep, jakarta.resource.spi.ActivationSpec spec) - Specified by:
endpointDeactivation
in interfacejakarta.resource.spi.ResourceAdapter
-
getXAResources
public XAResource[] getXAResources(jakarta.resource.spi.ActivationSpec[] specs) throws jakarta.resource.ResourceException - Specified by:
getXAResources
in interfacejakarta.resource.spi.ResourceAdapter
- Throws:
jakarta.resource.ResourceException
-
equals
-
hashCode
public int hashCode() -
setRAName
-
getRAName
-
debug
-