FileDocCategorySizeDatePackage
ConnectionMetaDataExistence.javaAPI DocGlassfish v2 API4016Fri May 04 22:33:30 BST 2007com.sun.enterprise.tools.verifier.tests.connector.cci

ConnectionMetaDataExistence

public class ConnectionMetaDataExistence extends ConnectionFactoryTest implements com.sun.enterprise.tools.verifier.tests.connector.ConnectorCheck
Test if a javax.resource.cci.ConnectionMetaData implementation has been provided in the rar file
author
Jerome Dochez
version

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

Test if a javax.resource.cci.ConnectionMetaData implementation has been provided in the rar file

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 (isCCIImplemented(descriptor, result)) {
            //File jarFile = Verifier.getJarFile(descriptor.getModuleDescriptor().getArchiveUri());
//            File f=Verifier.getArchiveFile(descriptor.getModuleDescriptor().getArchiveUri());
            findImplementorOf(descriptor, "javax.resource.cci.ConnectionMetaData", result);
        } else {
	    result.addNaDetails(smh.getLocalString
				  ("tests.componentNameConstructor",
				   "For [ {0} ]",
				   new Object[] {compName.toString()}));
	    result.notApplicable(smh.getLocalString
    	        ("com.sun.enterprise.tools.verifier.tests.connector.cci.InteractionExistence.notapp",
                 "NotApplicable : The CCI interfaces do not seem to be implemented by this resource adapter"));
        }       
        return result;