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

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

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

Application.getDirectoryDeployed介绍

[英]Gets the value of the directoryDeployed property.
[中]获取directoryDeployed属性的值。

代码示例

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

public String getDirectoryDeployed(String moduleID) {
  ApplicationName module = getModule(moduleID);
  if (module == null) {
    return null;
  } 
  if (module instanceof Application) {
    return ((Application)module).getDirectoryDeployed();
  } else {
    return null;
  }
}

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

public static Properties getDeployProperties(Application instance) {
  Properties deploymentProps = new Properties();
  for (Property prop : instance.getProperty()) {
    deploymentProps.put(prop.getName(), prop.getValue());
  }
  deploymentProps.setProperty(ServerTags.OBJECT_TYPE,
    instance.getObjectType());
  if (instance.getContextRoot() != null) {
    deploymentProps.setProperty(ServerTags.CONTEXT_ROOT,
      instance.getContextRoot());
  }
  if (instance.getDirectoryDeployed() != null) {
    deploymentProps.setProperty(ServerTags.DIRECTORY_DEPLOYED,
      instance.getDirectoryDeployed());
  }
  return deploymentProps;            
}

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

public static Properties getDeployProperties(Application instance) {
  Properties deploymentProps = new Properties();
  for (Property prop : instance.getProperty()) {
    if (prop.getValue() != null) {
      deploymentProps.put(prop.getName(), prop.getValue());
    }
  }
  if (instance.getObjectType() != null) {
    deploymentProps.setProperty(ServerTags.OBJECT_TYPE,
      instance.getObjectType());
  }
  if (instance.getContextRoot() != null) {
    deploymentProps.setProperty(ServerTags.CONTEXT_ROOT,
        instance.getContextRoot());
  }
  if (instance.getDirectoryDeployed() != null) {
    deploymentProps.setProperty(ServerTags.DIRECTORY_DEPLOYED,
        instance.getDirectoryDeployed());
  }
  return deploymentProps;
}

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

/**
 * Get the applications that should be
 * available to the specified server instance.
 */
private Map<String, Application> getApps(Server server) {
  /*
  if (syncAllApps)
    return getAllApps();
  */
  Map<String, Application> apps = new HashMap<String, Application>();
  if (applications == null)
    return apps;        // no apps
  // all apps are under <server>, even in a cluster
  for (ApplicationRef ref : server.getApplicationRef()) {
    Application app = applications.getApplication(ref.getRef());
    if (app != null) {
      if (logger.isLoggable(Level.FINEST))
        logger.finest("ServerSynchronizer: got app " +
                              app.getName());
      if (Boolean.parseBoolean(app.getDirectoryDeployed())) {
        if (logger.isLoggable(Level.FINEST))
          logger.finest("ServerSynchronizer: " +
              "skipping directory deployed app: " +
              app.getName());
      } else
        apps.put(VersioningUtils.getRepositoryName(app.getName()), app);
    }
  }
  return apps;
}

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

/**
 * Get the applications that should be
 * available to the specified server instance.
 */
private Map<String, Application> getApps(Server server) {
  /*
  if (syncAllApps)
    return getAllApps();
  */
  Map<String, Application> apps = new HashMap<String, Application>();
  if (applications == null)
    return apps;        // no apps
  // all apps are under <server>, even in a cluster
  for (ApplicationRef ref : server.getApplicationRef()) {
    Application app = applications.getApplication(ref.getRef());
    if (app != null) {
      logger.finest("ServerSynchronizer: got app " + app.getName());
      if (Boolean.parseBoolean(app.getDirectoryDeployed()))
        logger.finest("ServerSynchronizer: skipping directory " +
              "deployed app: " + app.getName());
      else
        apps.put(VersioningUtils.getRepositoryName(app.getName()), app);
    }
  }
  return apps;
}

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

if (! Boolean.valueOf(app.getDirectoryDeployed())) {
  File repackagedFile = null;
  try {

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

public static String getDirectoryDeployed(String moduleID) {
  ApplicationName module = getModule(moduleID);
  if (module == null) {
    return null;
  } 
  if (module instanceof Application) {
    return ((Application)module).getDirectoryDeployed();
  } else if (module instanceof WebModule) {
    return ((WebModule)module).getDirectoryDeployed();
  } else if (module instanceof EjbModule) {
    return ((EjbModule)module).getDirectoryDeployed();
  } else if (module instanceof ConnectorModule) {
    return ((ConnectorModule)module).getDirectoryDeployed();
  } else if (module instanceof AppclientModule) {
    return ((AppclientModule)module).getDirectoryDeployed();
  } else if (module instanceof J2eeApplication) {
    return ((J2eeApplication)module).getDirectoryDeployed();
  } else {
    return null;
  }
}

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

isDirectoryDeployed = Boolean.valueOf(application.getDirectoryDeployed());

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

if (!Boolean.valueOf(application.getDirectoryDeployed()) && source.exists()) {
  FileUtils.whack(new File(source.getURI()));

相关文章

微信公众号

最新文章

更多