Class DevelopmentConfiguration
-
- All Implemented Interfaces:
public class DevelopmentConfigurationExtends the extension with important file directories for the server.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classDevelopmentConfiguration.IntershopEnvironmentPropertypublic final classDevelopmentConfiguration.DatabaseParameterspublic final classDevelopmentConfiguration.DevelopmentPropertiespublic final classDevelopmentConfiguration.EnvironmentPropertiespublic final classDevelopmentConfiguration.ASPortConfigurationpublic final classDevelopmentConfiguration.WebserverConfigurationpublic classDevelopmentConfiguration.Companion
-
Field Summary
-
Constructor Summary
Constructors Constructor Description DevelopmentConfiguration(Project project, ObjectFactory objectFactory, ProviderFactory providerFactory)creates a configuration from environment variables.
-
Method Summary
Modifier and Type Method Description final ProjectgetProject()final BooleangetAppserverAsContainer()AppServer runs as a container if the value is true final UnitsetAppserverAsContainer(Boolean value)AppServer runs as a container if the value is true final SetProperty<String>getCartridgeList()Set of cartridges to be started for instance by task startAS final SetProperty<String>getTestCartridgeList()Set of cartridges for tests to be started for instance by task dbPrepare final StringgetLicenseDirectory()License directory path of the project. final StringgetLicenseFilePath()final StringgetConfigDirectory()Local configuration path of the project. final StringgetConfigFilePath()final DevelopmentConfiguration.DatabaseParametersgetDatabaseConfiguration()The database configuration (initialized lazily) final StringgetAsEnvironment()final DevelopmentConfiguration.WebserverConfigurationgetWebserverConfiguration()The webserver configuration (initialized lazily) final DevelopmentConfiguration.DevelopmentPropertiesgetDevelopmentProperties()final DevelopmentConfiguration.EnvironmentPropertiesgetIntershopEnvironmentProperties()final DevelopmentConfiguration.ASPortConfigurationgetAsPortConfiguration()The port configuration (initialized lazily) final StringgetConfigProperty(String property)final StringgetConfigProperty(String property, String defaultValue)final StringgetConfigProperty(String property, String defaultValue, Function1<Object, Boolean> isEmpty)final StringgetProjectProperty(String property, String defaultValue, Function1<Object, Boolean> isEmpty)final IntegergetIntProperty(String property, Integer defaultValue)final BooleangetBooleanProperty(String property, Boolean defaultValue)final DurationgetDurationProperty(String property, Integer defaultSeconds)final FilegetFileProperty(String property, File defaultValue)final PortMappinggetPortMapping(String name, String hostKey, Integer hostDefaultValue, Integer containerValue, Boolean primary)final PortMappinggetPortMapping(String name, String hostKey, Integer hostDefaultValue, String containerKey, Integer containerDefaultValue, Boolean primary)-
-
Method Detail
-
getProject
final Project getProject()
-
getAppserverAsContainer
final Boolean getAppserverAsContainer()
AppServer runs as a container if the value is true
-
setAppserverAsContainer
final Unit setAppserverAsContainer(Boolean value)
AppServer runs as a container if the value is true
-
getCartridgeList
final SetProperty<String> getCartridgeList()
Set of cartridges to be started for instance by task startAS
-
getTestCartridgeList
final SetProperty<String> getTestCartridgeList()
Set of cartridges for tests to be started for instance by task dbPrepare
-
getLicenseDirectory
final String getLicenseDirectory()
License directory path of the project.
-
getLicenseFilePath
final String getLicenseFilePath()
-
getConfigDirectory
final String getConfigDirectory()
Local configuration path of the project.
-
getConfigFilePath
final String getConfigFilePath()
-
getDatabaseConfiguration
final DevelopmentConfiguration.DatabaseParameters getDatabaseConfiguration()
The database configuration (initialized lazily)
-
getAsEnvironment
final String getAsEnvironment()
-
getWebserverConfiguration
final DevelopmentConfiguration.WebserverConfiguration getWebserverConfiguration()
The webserver configuration (initialized lazily)
-
getDevelopmentProperties
final DevelopmentConfiguration.DevelopmentProperties getDevelopmentProperties()
-
getIntershopEnvironmentProperties
final DevelopmentConfiguration.EnvironmentProperties getIntershopEnvironmentProperties()
-
getAsPortConfiguration
final DevelopmentConfiguration.ASPortConfiguration getAsPortConfiguration()
The port configuration (initialized lazily)
-
getConfigProperty
final String getConfigProperty(String property)
-
getConfigProperty
final String getConfigProperty(String property, String defaultValue)
-
getConfigProperty
final String getConfigProperty(String property, String defaultValue, Function1<Object, Boolean> isEmpty)
-
getProjectProperty
final String getProjectProperty(String property, String defaultValue, Function1<Object, Boolean> isEmpty)
-
getIntProperty
final Integer getIntProperty(String property, Integer defaultValue)
-
getBooleanProperty
final Boolean getBooleanProperty(String property, Boolean defaultValue)
-
getDurationProperty
final Duration getDurationProperty(String property, Integer defaultSeconds)
-
getFileProperty
final File getFileProperty(String property, File defaultValue)
-
getPortMapping
final PortMapping getPortMapping(String name, String hostKey, Integer hostDefaultValue, Integer containerValue, Boolean primary)
-
getPortMapping
final PortMapping getPortMapping(String name, String hostKey, Integer hostDefaultValue, String containerKey, Integer containerDefaultValue, Boolean primary)
-
-
-
-