public static boolean isStandaloneModule(Application me) { return !(Boolean.valueOf(me.getDeployProperties().getProperty (ServerTags.IS_COMPOSITE))); }
public static boolean isLifecycleModule(Application me) { return Boolean.valueOf(me.getDeployProperties().getProperty (ServerTags.IS_LIFECYCLE)); }
public static boolean isStandaloneModule(Application me) { return !(Boolean.valueOf(me.getDeployProperties().getProperty(ServerTags.IS_COMPOSITE))); }
public static boolean isLifecycleModule(Application me) { return Boolean.valueOf(me.getDeployProperties().getProperty(ServerTags.IS_LIFECYCLE)); }
/** * Returns the generated artifacts object derived from the properties * saved with the specified Application * @param app the Application config object with (possibly) properties describing generated artifacts * @return */ public static Artifacts generatedArtifacts(final Application app) { return Artifacts.get(app.getDeployProperties(), GENERATED_ARTIFACTS_KEY_PREFIX); }
/** * Returns the downloadable artifacts object derived from the properties * saved with the specified Application * @param app the Application config object with (possibly) properties describing downloadable artifacts * @return */ public static Artifacts downloadableArtifacts(final Application app) { return Artifacts.get(app.getDeployProperties(), DOWNLOADABLE_ARTIFACTS_KEY_PREFIX); }
Properties appProperties = app.getDeployProperties(); String moduleType = appProperties.getProperty(MODULE_TYPE); String suffix = getSuffixFromType(moduleType);
/** * Records reload information about the currently-known applications. * * @param applications */ private synchronized void initAppReloadInfo(Applications applications) throws URISyntaxException { appReloadInfo = new HashMap<String,AppReloadInfo>(); logger.fine("[Reloader] Preparing list of apps to monitor:"); for (ApplicationName m : applications.getModules()) { if (m instanceof Application) { Application app = (Application) m; if (Boolean.valueOf(app.getDeployProperties().getProperty (ServerTags.IS_LIFECYCLE))) { // skip lifecycle modules continue; } AppReloadInfo info = new AppReloadInfo(app); appReloadInfo.put(app.getName(), info); logger.fine("[Reloader] Monitoring " + app.getName() + " at " + app.getLocation()); } } }
if (m instanceof Application) { Application app = (Application) m; if (Boolean.valueOf(app.getDeployProperties().getProperty (ServerTags.IS_LIFECYCLE))) {
private Properties prepareUndeployActionProperties(String archiveName, String target) { DeploymentProperties dProps = new DeploymentProperties(); // we need to find the application registration name // which is not always the same as archive name String appName = archiveName; List<Application> applications = apps.getApplications(); for (Application app : applications) { String defaultAppName = app.getDeployProperties().getProperty (DeploymentProperties.DEFAULT_APP_NAME); if (defaultAppName != null && defaultAppName.equals(archiveName)) { appName = app.getName(); } } dProps.setName(appName); // dProps.setResourceAction(DeploymentProperties.RES_UNDEPLOYMENT); // dProps.setResourceTargetList(target); return (Properties)dProps; }
List<Application> lcms = new ArrayList<Application>();; for (Application app : applications) { if (Boolean.valueOf(app.getDeployProperties().getProperty (ServerTags.IS_LIFECYCLE))) { lcms.add(app); Properties props = next.getDeployProperties(); String enabled = next.getEnabled(); if ( isEnabled(next.getName(), enabled) ) {
String compatProp = app.getDeployProperties().getProperty( DeploymentProperties.COMPATIBILITY); if (compatProp != null) {
deployParams.properties = app.getDeployProperties();
commandParams.target = target; commandParams.enabled = Boolean.TRUE; Properties contextProps = app.getDeployProperties(); Map<String, Properties> modulePropsMap = app.getModulePropertiesMap(); ApplicationConfigInfo savedAppConfig = new ApplicationConfigInfo(app);
commandParams.target = target; commandParams.enabled = Boolean.TRUE; Properties contextProps = app.getDeployProperties(); Map<String, Properties> modulePropsMap = app.getModulePropertiesMap(); ApplicationConfigInfo savedAppConfig = new ApplicationConfigInfo(app);
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; }
Properties appProps = app.getDeployProperties(); paramMap.set(DeploymentProperties.APP_PROPS, DeploymentUtils.propertiesValue(appProps, ':'));
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; }
deployment.getBuilder(KernelLoggerInfo.getLogger(), commandParams, subReport).source(archive).build(); deploymentContext.getAppProps().putAll(app.getDeployProperties()); deploymentContext.getAppProps().putAll(tenant.getDeployProperties()); deploymentContext.setModulePropsMap(app.getModulePropertiesMap());
app.getDeployProperties()); deploymentContext.getAppProps().putAll( tenant.getDeployProperties());