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

InteractionExistence

public class InteractionExistence extends ConnectionFactoryTest implements com.sun.enterprise.tools.verifier.tests.connector.ConnectorCheck
Test if a javax.resource.cci.Interfaction implementation 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)

Test if a javax.resource.cci.Interfaction 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.Interaction", result);
        } else {
	    result.addNaDetails(smh.getLocalString
				  ("tests.componentNameConstructor",
				   "For [ {0} ]",
				   new Object[] {compName.toString()}));
	    result.notApplicable(smh.getLocalString
    	        (getClass().getName() + ".notapp",
                 "NotApplicable : The CCI interfaces do not seem to be implemented by this resource adapter"));                    
        }        
        return result;