FileDocCategorySizeDatePackage
CheckResourceAdapterClassSerializable.javaAPI DocGlassfish v2 API5559Fri May 04 22:33:28 BST 2007com.sun.enterprise.tools.verifier.tests.connector

CheckResourceAdapterClassSerializable

public class CheckResourceAdapterClassSerializable extends com.sun.enterprise.tools.verifier.tests.connector.ConnectorTest implements com.sun.enterprise.tools.verifier.tests.connector.ConnectorCheck
Test that "resourceadapter-class" implements java.io.Serializable
author
Anisha Malhotra
version

Fields Summary
Constructors Summary
Methods Summary
public com.sun.enterprise.tools.verifier.Resultcheck(com.sun.enterprise.deployment.ConnectorDescriptor descriptor)

ResourceAdapter class must be available if the resource adapter provides inbound communication

param
descriptor deployment descriptor for the rar file
return
result object containing the result of the individual test performed


    Result result = getInitializedResult();
    ComponentNameConstructor compName = 
      getVerifierContext().getComponentNameConstructor();

    String resourceAdapterClass = descriptor.getResourceAdapterClass();
    if(resourceAdapterClass.equals("") && descriptor.getInBoundDefined())
    {
        // resourceadapter-class cannot be null
        addErrorDetails(result, compName);
        result.failed(smh.getLocalString
            (getClass().getName() + ".failed",
             "ResourceAdapter class not found"));
    }
    else
    {
        addGoodDetails(result, compName);
        result.notApplicable(smh.getLocalString
            ("com.sun.enterprise.tools.verifier.tests.connector.resourceadapter.notApp",
             "Valid ResourceAdapter class."));
    }
    return result;