FileDocCategorySizeDatePackage
ManagedConnectionFactoryImplementation.javaAPI DocGlassfish v2 API3879Fri May 04 22:33:30 BST 2007com.sun.enterprise.tools.verifier.tests.connector.managed

ManagedConnectionFactoryImplementation

public class ManagedConnectionFactoryImplementation extends ManagedConnectionFactoryTest implements com.sun.enterprise.tools.verifier.tests.connector.ConnectorCheck
verify the declared ManagedConnectionFactory implements the javax.resource.spi.ManagedConnectionFactory interface
author
Jerome Dochez
version

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

all connector tests should implement this method. it run an individual test against the resource adapter deployment descriptor.

paramm
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();
        // test NA for inboundRA
        if(!descriptor.getOutBoundDefined())
        {
          result.addNaDetails(smh.getLocalString
              ("tests.componentNameConstructor",
               "For [ {0} ]",
               new Object[] {compName.toString()}));
          result.notApplicable(smh.getLocalString
              ("com.sun.enterprise.tools.verifier.tests.connector.managed.notApplicableForInboundRA",
               "Resource Adapter does not provide outbound communication"));
          return result;
        }
        testImplementationOf(descriptor, "javax.resource.spi.ManagedConnectionFactory", result);
        return result;