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

DefaultConnectionManagerExistence

public class DefaultConnectionManagerExistence extends ConnectorTest implements ConnectorCheck
Test if a default ConnectionManager has been provided in the rar file
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();
        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;
        }
	        
        //File jarFile = Verifier.getJarFile(descriptor.getModuleDescriptor().getArchiveUri());
//        File f=Verifier.getArchiveFile(descriptor.getModuleDescriptor().getArchiveUri());     
        findImplementorOf(descriptor, "javax.resource.spi.ConnectionManager", result);
        return result;