private ModuleInfo prepareBundle(final ModuleDescriptor md, Application application, final ExtendedDeploymentContext bundleContext) throws Exception { List<EngineInfo> orderedContainers = null; ProgressTracker tracker = bundleContext.getTransientAppMetaData(ExtendedDeploymentContext.TRACKER, ProgressTracker.class); try { // let's get the previously stored list of sniffers Hashtable<String, Collection<Sniffer>> sniffersTable = bundleContext.getSource().getParentArchive().getExtraData(Hashtable.class); Collection<Sniffer> sniffers = sniffersTable.get(md.getArchiveUri()); // let's get the list of containers interested in this module orderedContainers = deployment.setupContainerInfos(null, sniffers, bundleContext); if (orderedContainers == null) { return null; } } catch(Exception e) { deplLogger.log(Level.WARNING, ERROR_OCCURRED, e); throw e; } return deployment.prepareModule(orderedContainers, md.getArchiveUri(), bundleContext, tracker); }
context.getSource().addArchiveMetaData(DeploymentProperties.ALT_DD, commandParams.altdd); context.getSource().addArchiveMetaData(DeploymentProperties.RUNTIME_ALT_DD, commandParams.runtimealtdd); ArchiveHandler handler = context.getArchiveHandler(); if (handler == null) { handler = getArchiveHandler(context.getSource(), commandParams.type); context.setArchiveHandler(handler); if (handler.requiresAnnotationScanning(context.getSource())) { getDeployableTypes(context); report.failure(logger, localStrings.getLocalString("unknowncontainertype","There is no installed container capable of handling this application {0}",context.getSource().getName())); tracker.actOn(logger); return null; context.getSource(), appName); for (Object m : context.getModuleMetadata()) { tempAppInfo.addMetaData(m); context.getSource().setExtraData(Boolean.class, tempAppInfo.isJavaEEApp()); appRegistry.add(appName, tempAppInfo); appInfo = new ApplicationInfo(events, context.getSource(), appName); appInfo.addModule(moduleInfo);
context.getSource().addArchiveMetaData(DeploymentProperties.ALT_DD, commandParams.altdd); context.getSource().addArchiveMetaData(DeploymentProperties.RUNTIME_ALT_DD, commandParams.runtimealtdd); ArchiveHandler handler = context.getArchiveHandler(); if (handler == null) { handler = getArchiveHandler(context.getSource(), commandParams.type); context.setArchiveHandler(handler); if (handler.requiresAnnotationScanning(context.getSource())) { getDeployableTypes(context); report.failure(logger, localStrings.getLocalString("unknowncontainertype","There is no installed container capable of handling this application {0}",context.getSource().getName())); tracker.actOn(logger); return null; context.getSource(), appName); for (Object m : context.getModuleMetadata()) { tempAppInfo.addMetaData(m); context.getSource().setExtraData(Boolean.class, tempAppInfo.isJavaEEApp()); appRegistry.add(appName, tempAppInfo); appInfo = new ApplicationInfo(events, context.getSource(), appName); appInfo.addModule(moduleInfo);
name = archiveHandler.getDefaultApplicationName(initialContext.getSource(), initialContext); } else { DeploymentUtils.validateApplicationName(name); String versionIdentifier = archiveHandler.getVersionIdentifier(initialContext.getSource()); } catch (Exception ex) { events.unregister(this); if (initialContext != null && initialContext.getSource() != null) { try { initialContext.getSource().close(); } catch (IOException ioex) { throw new RuntimeException(ioex);
String appLocation = DeploymentUtils.relativizeWithinDomainIfPossible( deploymentContext.getSource().getURI());