コード例 #1
0
  public static ApplicationServerConfiguration generateDefault() {
    ApplicationServerConfiguration appServerConfiguration = new ApplicationServerConfiguration();
    appServerConfiguration.setClassLoaderEnvironments(prepareClassLoaderEnv());
    appServerConfiguration.setSingleSignOnConfiguration(prepareSSOConfigs());
    appServerConfiguration.setStatsPublisherConfiguration(prepareStatsPublishingConfigs());
    appServerConfiguration.setSecurityConfiguration(prepareSecurityConfigs());

    return appServerConfiguration;
  }
コード例 #2
0
 public static boolean compare(
     ApplicationServerConfiguration actual, ApplicationServerConfiguration expected) {
   boolean classloading =
       compareClassloadingConfigurations(
           actual.getClassLoaderEnvironments(), expected.getClassLoaderEnvironments());
   boolean sso =
       compareSSOConfigurations(
           actual.getSingleSignOnConfiguration(), expected.getSingleSignOnConfiguration());
   boolean statsPublishing =
       compareStatsPublishingConfigurations(
           actual.getStatsPublisherConfiguration(), expected.getStatsPublisherConfiguration());
   boolean security =
       compareSecurityConfigurations(
           actual.getSecurityConfiguration(), expected.getSecurityConfiguration());
   return (classloading && sso && statsPublishing && security);
 }