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 Details

    • AnnotatedResourceAdapterImpl

      public AnnotatedResourceAdapterImpl()
      Constructor for AnnotatedResourceAdapterImpl.
  • Method Details

    • start

      public void start(jakarta.resource.spi.BootstrapContext bsc) throws jakarta.resource.spi.ResourceAdapterInternalException
      Starts the resource adapter.
      Specified by:
      start in interface jakarta.resource.spi.ResourceAdapter
      Parameters:
      bsc - the bootstrap context
      Throws:
      jakarta.resource.spi.ResourceAdapterInternalException - if an internal error occurs
    • stop

      public void stop()
      Stops the resource adapter.
      Specified by:
      stop in interface jakarta.resource.spi.ResourceAdapter
    • endpointActivation

      public void endpointActivation(jakarta.resource.spi.endpoint.MessageEndpointFactory factory, jakarta.resource.spi.ActivationSpec spec) throws jakarta.resource.NotSupportedException
      Activates an endpoint.
      Specified by:
      endpointActivation in 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
    • endpointDeactivation

      public void endpointDeactivation(jakarta.resource.spi.endpoint.MessageEndpointFactory ep, jakarta.resource.spi.ActivationSpec spec)
      Deactivates an endpoint.
      Specified by:
      endpointDeactivation in interface jakarta.resource.spi.ResourceAdapter
      Parameters:
      ep - the message endpoint factory
      spec - the activation spec
    • getXAResources

      public XAResource[] getXAResources(jakarta.resource.spi.ActivationSpec[] specs) throws jakarta.resource.ResourceException
      Gets the XA resources.
      Specified by:
      getXAResources in 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
    • equals

      public boolean equals(Object obj)
      Compares this object with the given object.
      Overrides:
      equals in class Object
      Parameters:
      obj - the object to compare
      Returns:
      true if the objects are equal, false otherwise
    • hashCode

      public int hashCode()
      Gets the hashcode for this object.
      Overrides:
      hashCode in class Object
      Returns:
      the hashcode
    • setRaName

      public void setRaName(String name)
      Sets the resource adapter name.
      Parameters:
      name - the new resource adapter name
    • getRaName

      public String getRaName()
      Gets the resource adapter name.
      Returns:
      the resource adapter name
    • debug

      public void debug(String out)
      Debugging method.
      Parameters:
      out - the debug message
    • setServerSideUser

      public void setServerSideUser(String val)
      Sets the server-side user.
      Parameters:
      val - the new server-side user
    • getServerSideUser

      public String getServerSideUser()
      Gets the server-side user.
      Returns:
      the server-side user
    • setServerSidePwd

      public void setServerSidePwd(String val)
      Sets the server-side password.
      Parameters:
      val - the new server-side password
    • getServerSidePwd

      public String getServerSidePwd()
      Gets the server-side password.
      Returns:
      the server-side password
    • setEisUser

      public void setEisUser(String val)
      Sets the EIS user.
      Parameters:
      val - the new EIS user
    • getEisUser

      public String getEisUser()
      Gets the EIS user.
      Returns:
      the EIS user
    • setEisPwd

      public void setEisPwd(String val)
      Sets the EIS password.
      Parameters:
      val - the new EIS password
    • getEisPwd

      public String getEisPwd()
      Gets the EIS password.
      Returns:
      the EIS password