* classes using the main class loader yet because we need to find
* set up transformation of application classes by transformers from
* persistence (perhaps). So create a temporary loader just to
* load the descriptor.
*/
final AppClientArchivist archivist = getArchivist();
/*
* Anno processing is currently file-based. But during Java Web
* Start launches, the JARs which Java Web Start has downloaded are
* not accessible as File objects. Until the anno processing is
* generalized we suppress the anno processing during Java Web
* Start launches.
*/
archivist.setAnnotationProcessingRequested( ! isJWSLaunch);
final ACCClassLoader tempLoader = AccessController.doPrivileged(new PrivilegedAction<ACCClassLoader>() {
@Override
public ACCClassLoader run() {
return new ACCClassLoader(loader.getURLs(), loader.getParent());
}
});
archivist.setClassLoader(tempLoader);
acDesc = archivist.open(combinedRA, mainClassNameToLaunch);
archivist.setDescriptor(acDesc);
// acDesc = LaunchableUtil.openWithAnnoProcessingAndTempLoader(
// arch, loader, facadeClientRA, clientRA);
Application.createVirtualApplication(null, acDesc.getModuleDescriptor());