Class AnnotatedResourceAdapterImpl
java.lang.Object
com.sun.ts.tests.common.connector.whitebox.annotated.AnnotatedResourceAdapterImpl
- All Implemented Interfaces:
- jakarta.resource.spi.ResourceAdapter,- Serializable
@Connector(description="CTS Test Resource Adapter with No DD",
           displayName="whitebox-anno_no_md.rar",
           vendorName="Java Software",
           eisType="TS EIS",
           version="1.6",
           licenseDescription="CTS License Required",
           licenseRequired=true,
           authMechanisms=@AuthenticationMechanism(credentialInterface=PasswordCredential,authMechanism="BasicPassword",description="Basic Password Authentication"),
           reauthenticationSupport=false,
           securityPermissions=@SecurityPermission(description="Security Perm description"),
           transactionSupport=LocalTransaction,
           requiredWorkContexts={jakarta.resource.spi.work.HintsContext.class,jakarta.resource.spi.work.SecurityContext.class})
public class AnnotatedResourceAdapterImpl
extends Object
implements jakarta.resource.spi.ResourceAdapter, Serializable
This is a sample resource adapter that will use no 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 SummaryConstructorsConstructorDescriptionConstructor for AnnotatedResourceAdapterImpl.
- 
Method SummaryModifier and TypeMethodDescriptionvoidDebugging method.voidendpointActivation(jakarta.resource.spi.endpoint.MessageEndpointFactory factory, jakarta.resource.spi.ActivationSpec spec) Activates an endpoint.voidendpointDeactivation(jakarta.resource.spi.endpoint.MessageEndpointFactory ep, jakarta.resource.spi.ActivationSpec spec) Deactivates an endpoint.booleanCompares this object with the given object.Gets the EIS password.Gets the EIS user.Gets the resource adapter name.Gets the server-side password.Gets the server-side user.getXAResources(jakarta.resource.spi.ActivationSpec[] specs) Gets the XA resources.inthashCode()Gets the hashcode for this object.voidSets the EIS password.voidsetEisUser(String val) Sets the EIS user.voidSets the resource adapter name.voidsetServerSidePwd(String val) Sets the server-side password.voidsetServerSideUser(String val) Sets the server-side user.voidstart(jakarta.resource.spi.BootstrapContext bsc) Starts the resource adapter.voidstop()Stops the resource adapter.
- 
Constructor Details- 
AnnotatedResourceAdapterImplpublic AnnotatedResourceAdapterImpl()Constructor for AnnotatedResourceAdapterImpl.
 
- 
- 
Method Details- 
startpublic void start(jakarta.resource.spi.BootstrapContext bsc) throws jakarta.resource.spi.ResourceAdapterInternalException Starts the resource adapter.- Specified by:
- startin interface- jakarta.resource.spi.ResourceAdapter
- Parameters:
- bsc- the bootstrap context
- Throws:
- jakarta.resource.spi.ResourceAdapterInternalException- if an internal error occurs
 
- 
stoppublic void stop()Stops the resource adapter.- Specified by:
- stopin interface- jakarta.resource.spi.ResourceAdapter
 
- 
endpointActivationpublic void endpointActivation(jakarta.resource.spi.endpoint.MessageEndpointFactory factory, jakarta.resource.spi.ActivationSpec spec) throws jakarta.resource.NotSupportedException Activates an endpoint.- Specified by:
- endpointActivationin interface- jakarta.resource.spi.ResourceAdapter
- Parameters:
- factory- the message endpoint factory
- spec- the activation spec
- Throws:
- jakarta.resource.NotSupportedException- if the operation is not supported
 
- 
endpointDeactivationpublic void endpointDeactivation(jakarta.resource.spi.endpoint.MessageEndpointFactory ep, jakarta.resource.spi.ActivationSpec spec) Deactivates an endpoint.- Specified by:
- endpointDeactivationin interface- jakarta.resource.spi.ResourceAdapter
- Parameters:
- ep- the message endpoint factory
- spec- the activation spec
 
- 
getXAResourcespublic XAResource[] getXAResources(jakarta.resource.spi.ActivationSpec[] specs) throws jakarta.resource.ResourceException Gets the XA resources.- Specified by:
- getXAResourcesin interface- jakarta.resource.spi.ResourceAdapter
- Parameters:
- specs- the activation specs
- Returns:
- an array of XA resources
- Throws:
- jakarta.resource.ResourceException- if a resource error occurs
 
- 
equalsCompares this object with the given object.
- 
hashCodepublic int hashCode()Gets the hashcode for this object.
- 
setRaNameSets the resource adapter name.- Parameters:
- name- the new resource adapter name
 
- 
getRaNameGets the resource adapter name.- Returns:
- the resource adapter name
 
- 
debugDebugging method.- Parameters:
- out- the debug message
 
- 
setServerSideUserSets the server-side user.- Parameters:
- val- the new server-side user
 
- 
getServerSideUserGets the server-side user.- Returns:
- the server-side user
 
- 
setServerSidePwdSets the server-side password.- Parameters:
- val- the new server-side password
 
- 
getServerSidePwdGets the server-side password.- Returns:
- the server-side password
 
- 
setEisUserSets the EIS user.- Parameters:
- val- the new EIS user
 
- 
getEisUserGets the EIS user.- Returns:
- the EIS user
 
- 
setEisPwdSets the EIS password.- Parameters:
- val- the new EIS password
 
- 
getEisPwdGets the EIS password.- Returns:
- the EIS password
 
 
-