/** * Extracts the application config information for the web container * from the saved config info. The saved config info is from the * in-memory configuration (domain.xml) if this app was already deployed * and is being redeployed. * * @param appConfigInfo * @return */ private org.glassfish.web.plugin.common.WebModuleConfig extractCustomizations( final ApplicationConfigInfo appConfigInfo) { return appConfigInfo.get(trimmedModuleName(wmInfo.getName()), "web"); }
public ApplicationConfigInfo(final Application app) { moduleToEngineToAppConfig = createNewMap(); if (app != null) { for (Module m : app.getModule()) { for (Engine e : m.getEngines()) { put(m.getName(), e.getSniffer(), e.getApplicationConfig()); } } } }
Properties contextProps = app.getDeployProperties(); Map<String, Properties> modulePropsMap = app.getModulePropertiesMap(); ApplicationConfigInfo savedAppConfig = new ApplicationConfigInfo(app); URI uri = new URI(app.getLocation()); File file = new File(uri); savedAppConfig.store(appProps);
ApplicationConfigInfo savedAppConfig = new ApplicationConfigInfo(context.getAppProps()); for (EngineRef er : mi.getEngineRefs()) { ApplicationConfig c = savedAppConfig.get(mi.getName(), er.getContainerInfo().getSniffer().getModuleType()); if (c != null) {
@Override public WebApplication load(WebContainer container, DeploymentContext dc) { super.load(container, dc); WebBundleDescriptor wbd = dc.getModuleMetaData( WebBundleDescriptor.class); if (wbd != null) { wbd.setClassLoader(dc.getClassLoader()); } WebModuleConfig wmInfo = loadWebModuleConfig(dc); WebApplication webApp = new WebApplication(container, wmInfo, new ApplicationConfigInfo(dc.getAppProps())); return webApp; }
public ApplicationConfigInfo() { moduleToEngineToAppConfig = createNewMap(); }
Properties contextProps = app.getDeployProperties(); Map<String, Properties> modulePropsMap = app.getModulePropertiesMap(); ApplicationConfigInfo savedAppConfig = new ApplicationConfigInfo(app); URI uri = new URI(app.getLocation()); File file = new File(uri); savedAppConfig.store(appProps);
ApplicationConfigInfo savedAppConfig = new ApplicationConfigInfo(context.getAppProps()); for (EngineRef er : mi.getEngineRefs()) { ApplicationConfig c = savedAppConfig.get(mi.getName(), er.getContainerInfo().getSniffer().getModuleType()); if (c != null) {
public ApplicationConfigInfo(final Properties appProperties) { Object map = appProperties.get(DeploymentProperties.APP_CONFIG); if (map == null) { moduleToEngineToAppConfig = createNewMap(); } else { moduleToEngineToAppConfig = (Map<String, Map<String,ApplicationConfig>>) map; } }
depContext.setModulePropsMap(app.getModulePropertiesMap()); new ApplicationConfigInfo(app).store(depContext.getAppProps());
savedAppConfig = new ApplicationConfigInfo(app); appProps.setProperty(Application.DEPLOYMENT_PLAN_LOCATION_PROP_NAME, DeploymentUtils.relativizeWithinDomainIfPossible(new URI(planLocation))); savedAppConfig.store(appProps);
new ApplicationConfigInfo(apps.getModule(Application.class, name)); Properties undeployProps = handleRedeploy(name, report, context); if (enabled == null) { savedAppConfig.store(appProps);
new ApplicationConfigInfo(apps.getModule(Application.class, name)); Properties undeployProps = handleRedeploy(name, report); if (enabled == null) { savedAppConfig.store(appProps);