@Test void testGetPlatformValidPlatform() { Map<String, Object> platformMap = injectFileInEnvironment(PLATFORM, ApplicationConfiguration.CFG_PLATFORM); Platform platform = configuration.getPlatform(); Assertions.assertEquals(platformMap.get("name"), platform.getName()); Assertions.assertFalse(platform.getResourceTypes() .isEmpty()); Assertions.assertFalse(platform.getModuleTypes() .isEmpty()); Assertions.assertTrue(platform.getParameters() .isEmpty()); }
public Platform getPlatform() { if (platform == null) { platform = getPlatformFromEnvironment(); } return platform; }
ApplicationConfiguration { public Platform getPlatform() { if (platform == null) { platform = getPlatformFromEnvironment(); } return platform; } }
ApplicationConfiguration { public Platform getPlatform() { if (platform == null) { platform = getPlatformFromEnvironment(); } return platform; } ApplicationConfiguration(); @Inject  ApplicationConfiguration(Environment environment); }
ApplicationConfiguration { public Platform getPlatform() { if (platform == null) { platform = getPlatformFromEnvironment(); } return platform; } ApplicationConfiguration(); @Inject  ApplicationConfiguration(Environment environment); void load(); Map<String, String> getNotSensitiveVariables(); Configuration getFileConfiguration(); URL getControllerUrl(); Platform getPlatform(); Long getMaxUploadSize(); Long getMaxMtaDescriptorSize(); Long getMaxManifestSize(); Long getMaxResourceFileSize(); String getCronExpressionForOldData(); Long getMaxTtlForOldData(); Boolean shouldUseXSAuditLogging(); String getSpaceGuid(); String getOrgName(); String getDeployServiceUrl(); Boolean isBasicAuthEnabled(); String getGlobalAuditorUser(); String getGlobalAuditorPassword(); int getDbConnectionThreads(); int getStepPollingIntervalInSeconds(); Boolean shouldSkipSslValidation(); String getVersion(); Integer getChangeLogLockPollRate(); Integer getChangeLogLockDuration(); Integer getChangeLogLockAttempts(); String getGlobalConfigSpace(); HealthCheckConfiguration getHealthCheckConfiguration(); String getApplicationGuid(); Integer getApplicationInstanceIndex(); Integer getAuditLogClientCoreThreads(); Integer getAuditLogClientMaxThreads(); Integer getAuditLogClientQueueCapacity(); Integer getAuditLogClientKeepAlive(); Integer getFlowableJobExecutorCoreThreads(); Integer getFlowableJobExecutorMaxThreads(); Integer getFlowableJobExecutorQueueCapacity(); Integer getFssCacheUpdateTimeoutMinutes(); Integer getThreadMonitorCacheUpdateInSeconds(); Integer getSpaceDeveloperCacheExpirationInSeconds(); Duration getControllerClientSslHandshakeTimeout(); Duration getControllerClientConnectTimeout(); Integer getControllerClientConnectionPoolSize(); Integer getControllerClientThreadPoolSize(); String getCertificateCN(); Integer getMicrometerStepInSeconds(); Integer getDbTransactionTimeoutInSeconds(); Integer getSnakeyamlMaxAliasesForCollections(); Boolean isInternalEnvironment(); Map<String, Object> getCloudComponents(); String getInternalSupportChannel(); }
ApplicationConfiguration { public Platform getPlatform() { if (platform == null) { platform = getPlatformFromEnvironment(); } return platform; } ApplicationConfiguration(); @Inject  ApplicationConfiguration(Environment environment); void load(); Map<String, String> getNotSensitiveVariables(); Configuration getFileConfiguration(); URL getControllerUrl(); Platform getPlatform(); Long getMaxUploadSize(); Long getMaxMtaDescriptorSize(); Long getMaxManifestSize(); Long getMaxResourceFileSize(); String getCronExpressionForOldData(); Long getMaxTtlForOldData(); Boolean shouldUseXSAuditLogging(); String getSpaceGuid(); String getOrgName(); String getDeployServiceUrl(); Boolean isBasicAuthEnabled(); String getGlobalAuditorUser(); String getGlobalAuditorPassword(); int getDbConnectionThreads(); int getStepPollingIntervalInSeconds(); Boolean shouldSkipSslValidation(); String getVersion(); Integer getChangeLogLockPollRate(); Integer getChangeLogLockDuration(); Integer getChangeLogLockAttempts(); String getGlobalConfigSpace(); HealthCheckConfiguration getHealthCheckConfiguration(); String getApplicationGuid(); Integer getApplicationInstanceIndex(); Integer getAuditLogClientCoreThreads(); Integer getAuditLogClientMaxThreads(); Integer getAuditLogClientQueueCapacity(); Integer getAuditLogClientKeepAlive(); Integer getFlowableJobExecutorCoreThreads(); Integer getFlowableJobExecutorMaxThreads(); Integer getFlowableJobExecutorQueueCapacity(); Integer getFssCacheUpdateTimeoutMinutes(); Integer getThreadMonitorCacheUpdateInSeconds(); Integer getSpaceDeveloperCacheExpirationInSeconds(); Duration getControllerClientSslHandshakeTimeout(); Duration getControllerClientConnectTimeout(); Integer getControllerClientConnectionPoolSize(); Integer getControllerClientThreadPoolSize(); String getCertificateCN(); Integer getMicrometerStepInSeconds(); Integer getDbTransactionTimeoutInSeconds(); Integer getSnakeyamlMaxAliasesForCollections(); Boolean isInternalEnvironment(); Map<String, Object> getCloudComponents(); String getInternalSupportChannel(); static final List<Platform> DEFAULT_PLATFORMS; static final List<Target> DEFAULT_TARGETS; static final long DEFAULT_MAX_UPLOAD_SIZE; static final long DEFAULT_MAX_MTA_DESCRIPTOR_SIZE; static final long DEFAULT_MAX_MANIFEST_SIZE; static final long DEFAULT_MAX_RESOURCE_FILE_SIZE; static final Boolean DEFAULT_USE_XS_AUDIT_LOGGING; static final String DEFAULT_SPACE_GUID; static final Boolean DEFAULT_BASIC_AUTH_ENABLED; static final Integer DEFAULT_DB_CONNECTION_THREADS; static final String DEFAULT_CRON_EXPRESSION_FOR_OLD_DATA; static final long DEFAULT_MAX_TTL_FOR_OLD_DATA; static final Integer DEFAULT_STEP_POLLING_INTERVAL_IN_SECONDS; static final Boolean DEFAULT_SKIP_SSL_VALIDATION; static final String DEFAULT_VERSION; static final Integer DEFAULT_CHANGE_LOG_LOCK_POLL_RATE; static final Integer DEFAULT_CHANGE_LOG_LOCK_DURATION; static final Integer DEFAULT_CHANGE_LOG_LOCK_ATTEMPTS; static final Integer DEFAULT_HEALTH_CHECK_TIME_RANGE; static final Integer DEFAULT_AUDIT_LOG_CLIENT_CORE_THREADS; static final Integer DEFAULT_AUDIT_LOG_CLIENT_MAX_THREADS; static final Integer DEFAULT_AUDIT_LOG_CLIENT_QUEUE_CAPACITY; static final Integer DEFAULT_AUDIT_LOG_CLIENT_KEEP_ALIVE; static final Integer DEFAULT_FLOWABLE_JOB_EXECUTOR_CORE_THREADS; static final Integer DEFAULT_FLOWABLE_JOB_EXECUTOR_MAX_THREADS; static final Integer DEFAULT_FLOWABLE_JOB_EXECUTOR_QUEUE_CAPACITY; static final Integer DEFAULT_FSS_CACHE_UPDATE_TIMEOUT_MINUTES; static final Integer DEFAULT_THREAD_MONITOR_CACHE_UPDATE_IN_SECONDS; static final Integer DEFAULT_SPACE_DEVELOPER_CACHE_TIME_IN_SECONDS; static final int DEFAULT_CONTROLLER_CLIENT_SSL_HANDSHAKE_TIMEOUT_IN_SECONDS; static final int DEFAULT_CONTROLLER_CLIENT_CONNECT_TIMEOUT_IN_SECONDS; static final int DEFAULT_CONTROLLER_CLIENT_CONNECTION_POOL_SIZE; static final int DEFAULT_CONTROLLER_CLIENT_THREAD_POOL_SIZE; static final Boolean DEFAULT_SAP_INTERNAL_DELIVERY; static final int DEFAULT_DB_TRANSACTION_TIMEOUT_IN_SECONDS; static final int DEFAULT_SNAKEYAML_MAX_ALIASES_FOR_COLLECTIONS; }