Methods Summary |
---|
public void | check(com.sun.enterprise.deployment.Descriptor descriptor)
// run the ParseDD test
if (getSchemaVersion(descriptor).compareTo("1.5") < 0) { // NOI18N
ConnectorDeploymentDescriptorFile ddf = new ConnectorDeploymentDescriptorFile();
File file = new File(getAbstractArchiveUri(descriptor),
ddf.getDeploymentDescriptorPath());
FileInputStream is = new FileInputStream(file);
try {
if (is != null) {
Result result = new ParseDD().validateConnectorDescriptor(is);
result.setComponentName(getArchiveUri(descriptor));
setModuleName(result);
frameworkContext.getResultManager().add(result);
}
} finally {
try {
if(is!=null)
is.close();
} catch(Exception e) {}
}
}
super.check(descriptor);
|
protected com.sun.enterprise.tools.verifier.tests.ComponentNameConstructor | getComponentNameConstructor(com.sun.enterprise.deployment.Descriptor descriptor)
return new ComponentNameConstructor((ConnectorDescriptor)descriptor);
|
protected java.lang.String | getSchemaVersion(com.sun.enterprise.deployment.Descriptor descriptor)
return ((ConnectorDescriptor) descriptor).getSpecVersion();
|
protected java.lang.String | getSunONETestsListFileName()return the configuration file name for the list of tests pertinent to the
connector architecture (SunONE)
if ((System.getProperty("verifier.tests.sunconnector", "false")).equals(
"true")) // NOI18N
return sunONETestsListFileName;
else
return null;
|
protected java.lang.String | getTestsListFileName()return the configuration file name for the list of tests pertinent to the
connector architecture
return testsListFileName;
|
protected void | setModuleName(com.sun.enterprise.tools.verifier.Result r)
r.setModuleName(Result.CONNECTOR);
|