logger.logp(Level.WARNING, "OSGiContainer", "deploy", "Bundle {0} is already deployed at {1} ", new Object[]{b, osgiAppInfo.getAppInfo().getSource()}); return null; logger.logp(Level.INFO, "OSGiContainer", "deploy", "deployed bundle {0} at {1}", new Object[]{osgiAppInfo.getBundle(), osgiAppInfo.getAppInfo().getSource().getURI()}); return osgiAppInfo;
logger.logp(Level.WARNING, "OSGiContainer", "deploy", "Bundle {0} is already deployed at {1} ", new Object[]{b, osgiAppInfo.getAppInfo().getSource()}); return null; logger.logp(Level.INFO, "OSGiContainer", "deploy", "deployed bundle {0} at {1}", new Object[]{osgiAppInfo.getBundle(), osgiAppInfo.getAppInfo().getSource().getURI()}); return osgiAppInfo;
addToResultDDList("", appSniffer.getDeploymentConfigurations(appInfo.getSource()), part); ReadableArchive moduleArchive = appInfo.getSource().getSubArchive(moduleInfo.getName()); addToResultDDList(moduleInfo.getName(), moduleSniffer.getDeploymentConfigurations(moduleArchive), part); addToResultDDList(appname, sniffer.getDeploymentConfigurations(appInfo.getSource()), part);
public ExtendedDeploymentContext disable(UndeployCommandParameters commandParams, Application app, ApplicationInfo appInfo, ActionReport report, Logger logger) throws Exception { if (appInfo == null) { return null; } // if it's not on DAS and the application is not loaded, do not unload // when it's on DAS, there is some necessary clean up we need to do if (!env.isDas() && !appInfo.isLoaded()) { return null; } if (app != null) { commandParams._type = app.archiveType(); } final ExtendedDeploymentContext deploymentContext = getBuilder(logger, commandParams, report).source(appInfo.getSource()).build(); if (app != null) { deploymentContext.getAppProps().putAll( app.getDeployProperties()); deploymentContext.setModulePropsMap( app.getModulePropertiesMap()); } if (commandParams.properties != null) { deploymentContext.getAppProps().putAll(commandParams.properties); } unload(appInfo, deploymentContext); return deploymentContext; }
public ExtendedDeploymentContext disable(UndeployCommandParameters commandParams, Application app, ApplicationInfo appInfo, ActionReport report, Logger logger) throws Exception { if (appInfo == null) { report.failure(logger, "Application not registered", null); return null; } // if it's not on DAS and the application is not loaded, do not unload // when it's on DAS, there is some necessary clean up we need to do if (!env.isDas() && !appInfo.isLoaded()) { return null; } if (app != null) { commandParams._type = app.archiveType(); } final ExtendedDeploymentContext deploymentContext = getBuilder(logger, commandParams, report).source(appInfo.getSource()).build(); if (app != null) { deploymentContext.getAppProps().putAll( app.getDeployProperties()); deploymentContext.setModulePropsMap( app.getModulePropertiesMap()); } if (commandParams.properties != null) { deploymentContext.getAppProps().putAll(commandParams.properties); } unload(appInfo, deploymentContext); return deploymentContext; }
ReadableArchive source = appInfo.getSource(); if (source == null) { report.setMessage(
reporter, logger, osgiAppInfo.getAppInfo().getSource(), getUndeployParams(osgiAppInfo), env,
source = info.getSource();
reporter, logger, osgiAppInfo.getAppInfo().getSource(), getUndeployParams(osgiAppInfo), env,
ApplicationRegistry appRegistry = wscImpl.getHabitat().getByType(ApplicationRegistry.class); ApplicationInfo appInfo = appRegistry.get(endpoint.getBundleDescriptor().getApplication().getRegistrationName()); URI deployedDir =appInfo.getSource().getURI();
ApplicationInfo appInfo = deployment.get(appName); if (appInfo != null) { source = appInfo.getSource(); } else { File location = new File(new URI(application.getLocation()));
ExtendedDeploymentContext deploymentContext = deployment.getBuilder(KernelLoggerInfo.getLogger(), parameters, subReport).source(appInfo.getSource()).build();