Methods Summary |
---|
protected void | check(com.sun.enterprise.deployment.Descriptor descriptor)
PersistenceUnitDescriptor pu =
PersistenceUnitDescriptor.class.cast(descriptor);
RootDeploymentDescriptor rootDD = pu.getParent().getParent();
if(rootDD.isApplication()) {
moduleName = Result.APP;
} else {
ModuleDescriptor mdesc =
BundleDescriptor.class.cast(rootDD).getModuleDescriptor();
final ModuleType moduleType = mdesc.getModuleType();
if(moduleType == ModuleType.EJB) {
moduleName = Result.EJB;
} else if (moduleType == ModuleType.WAR) {
moduleName = Result.WEB;
} else if (moduleType == ModuleType.CAR) {
moduleName = Result.APPCLIENT;
} else {
throw new RuntimeException(
smh.getLocalString(getClass().getName()+".exception", // NOI18N
"Unknown module type : {0}", // NOI18N
new Object[] {moduleType}));
}
}
super.check(descriptor);
|
protected java.lang.String | getAbstractArchiveUri(com.sun.enterprise.deployment.Descriptor descriptor)This method returns the path to the module.
String archBase = context.getAbstractArchive().getArchiveUri();
RootDeploymentDescriptor rootDD =
PersistenceUnitDescriptor.class.cast(descriptor).getParent().getParent();
if(rootDD.isApplication()) {
return archBase;
} else {
ModuleDescriptor mdesc =
BundleDescriptor.class.cast(rootDD).getModuleDescriptor();
if(mdesc.isStandalone()) {
return archBase;
} else {
return archBase + File.separator +
FileUtils.makeFriendlyFileName(mdesc.getArchiveUri());
}
}
|
protected com.sun.enterprise.tools.verifier.tests.ComponentNameConstructor | getComponentNameConstructor(com.sun.enterprise.deployment.Descriptor descriptor)
return new ComponentNameConstructor(
PersistenceUnitDescriptor.class.cast(descriptor));
|
protected java.lang.String | getSchemaVersion(com.sun.enterprise.deployment.Descriptor descriptor)
// A PU inherits its schema version from its parent.
return PersistenceUnitDescriptor.class.cast(descriptor).getParent().
getSpecVersion();
|
protected java.lang.String | getSunONETestsListFileName()
return null;
|
protected java.lang.String | getTestsListFileName()
return "TestNamesPersistence.xml"; // NOI18N
|
protected void | setModuleName(Result r)
r.setModuleName(moduleName);
|
protected void | setRuntimeDDPresent(java.lang.String uri)We override here because there is nothing like sun-persistence.xml.
isDDPresent = false;
|