com.sun.enterprise.config.serverbeans.Application.getDeployProperties()方法的使用及代码示例

x33g5p2x  于2022-01-16 转载在 其他  
字(7.5k)|赞(0)|评价(0)|浏览(106)

本文整理了Java中com.sun.enterprise.config.serverbeans.Application.getDeployProperties()方法的一些代码示例,展示了Application.getDeployProperties()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Application.getDeployProperties()方法的具体详情如下:
包路径:com.sun.enterprise.config.serverbeans.Application
类名称:Application
方法名:getDeployProperties

Application.getDeployProperties介绍

暂无

代码示例

代码示例来源:origin: org.glassfish.admin/config-api

public static boolean isStandaloneModule(Application me) {
  return !(Boolean.valueOf(me.getDeployProperties().getProperty
    (ServerTags.IS_COMPOSITE)));
}

代码示例来源:origin: org.glassfish.admin/config-api

public static boolean isLifecycleModule(Application me) {
  return Boolean.valueOf(me.getDeployProperties().getProperty
    (ServerTags.IS_LIFECYCLE));
}

代码示例来源:origin: org.glassfish.main.admin/config-api

public static boolean isStandaloneModule(Application me) {
  return !(Boolean.valueOf(me.getDeployProperties().getProperty(ServerTags.IS_COMPOSITE)));
}

代码示例来源:origin: org.glassfish.main.admin/config-api

public static boolean isLifecycleModule(Application me) {
  return Boolean.valueOf(me.getDeployProperties().getProperty(ServerTags.IS_LIFECYCLE));
}

代码示例来源:origin: org.glassfish.deployment/deployment-common

/**
 * 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);
}

代码示例来源:origin: org.glassfish.deployment/deployment-common

/**
 * 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);
}

代码示例来源:origin: org.glassfish.main.core/kernel

Properties appProperties = app.getDeployProperties();
String moduleType = appProperties.getProperty(MODULE_TYPE);
String suffix = getSuffixFromType(moduleType);

代码示例来源:origin: org.glassfish.main.core/kernel

/**
 * 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());
     }
   }
}

代码示例来源:origin: org.glassfish.main.core/kernel

if (m instanceof Application) {
  Application app = (Application) m;
  if (Boolean.valueOf(app.getDeployProperties().getProperty
    (ServerTags.IS_LIFECYCLE))) {

代码示例来源:origin: org.glassfish.main.deployment/deployment-autodeploy

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;
  }

代码示例来源:origin: org.glassfish.main.core/kernel

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) ) {

代码示例来源:origin: org.glassfish.deployment/deployment-admin

String compatProp = app.getDeployProperties().getProperty(
  DeploymentProperties.COMPATIBILITY);
if (compatProp != null) {

代码示例来源:origin: org.glassfish.main.core/kernel

deployParams.properties = app.getDeployProperties();

代码示例来源:origin: fujitsu/launcher

commandParams.target = target;
commandParams.enabled = Boolean.TRUE;
Properties contextProps = app.getDeployProperties();
Map<String, Properties> modulePropsMap = app.getModulePropertiesMap();
ApplicationConfigInfo savedAppConfig = new ApplicationConfigInfo(app);

代码示例来源:origin: org.glassfish.main.core/kernel

commandParams.target = target;
commandParams.enabled = Boolean.TRUE;
Properties contextProps = app.getDeployProperties();
Map<String, Properties> modulePropsMap = app.getModulePropertiesMap();
ApplicationConfigInfo savedAppConfig = new ApplicationConfigInfo(app);

代码示例来源:origin: org.glassfish.main.core/kernel

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;
}

代码示例来源:origin: org.glassfish.deployment/deployment-admin

Properties appProps = app.getDeployProperties();
paramMap.set(DeploymentProperties.APP_PROPS, DeploymentUtils.propertiesValue(appProps, ':'));

代码示例来源:origin: fujitsu/launcher

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;
}

代码示例来源:origin: org.glassfish.main.core/kernel

deployment.getBuilder(KernelLoggerInfo.getLogger(), commandParams, subReport).source(archive).build();
deploymentContext.getAppProps().putAll(app.getDeployProperties());
deploymentContext.getAppProps().putAll(tenant.getDeployProperties());
deploymentContext.setModulePropsMap(app.getModulePropertiesMap());

代码示例来源:origin: org.glassfish.main.core/kernel

app.getDeployProperties());
deploymentContext.getAppProps().putAll(
  tenant.getDeployProperties());

相关文章

微信公众号

最新文章

更多