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

ConnectionInterfaceImpl

public class ConnectionInterfaceImpl extends ConnectionTest implements com.sun.enterprise.tools.verifier.tests.connector.ConnectorCheck
Test if the connection-impl-class implements the connection-interface interface
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 the connection-impl-class implements the connection-interface interface

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))
    {
      Class c = testConnectionImpl(descriptor, result);
      // failure to load the class are handled in the superclass
      if (c!=null) {
        // now check it does implement the interface 
        String interfaceName = getConnectionInterface(descriptor, result);
        testImplementationOf(c, interfaceName, result); 
      }
    }
    else
    {
      // test is NA
      result.addNaDetails(smh.getLocalString
          ("tests.componentNameConstructor",
           "For [ {0} ]",
           new Object[] {compName.toString()}));
      result.notApplicable(smh.getLocalString
          ("com.sun.enterprise.tools.verifier.tests.connector.cci.notApp",
           "The CCI interfaces do not seem to be implemented by this resource adapter"));
    }
    return result;