Package de.xima.fc.e2e.environment.impl
Class FormcycleEnvironmentConfigBuilder
- java.lang.Object
-
- de.xima.fc.e2e.environment.impl.FormcycleEnvironmentConfigBuilder
-
- All Implemented Interfaces:
IFormcycleEnvironmentConfigBuilder
public final class FormcycleEnvironmentConfigBuilder extends Object implements IFormcycleEnvironmentConfigBuilder
Internal default POJO implementation ofIFormcycleEnvironmentConfig
.- Author:
- XIMA MEDIA GmbH
-
-
Constructor Summary
Constructors Constructor Description FormcycleEnvironmentConfigBuilder()
-
Method Summary
-
-
-
Method Detail
-
build
public IFormcycleEnvironmentConfig build()
- Specified by:
build
in interfaceIFormcycleEnvironmentConfigBuilder
- Returns:
- A new configuration with the current settings.
-
withApplicationProperties
public IFormcycleEnvironmentConfigBuilder withApplicationProperties(Properties applicationProperties)
- Specified by:
withApplicationProperties
in interfaceIFormcycleEnvironmentConfigBuilder
- Parameters:
applicationProperties
- The contents of theapplication.properties
file to use when starting the FORMCYCLE app.- Returns:
- This builder instance for chaining method calls.
-
withApplicationProperties
public IFormcycleEnvironmentConfigBuilder withApplicationProperties(URI properties) throws IOException
- Specified by:
withApplicationProperties
in interfaceIFormcycleEnvironmentConfigBuilder
- Parameters:
properties
- The contents of theapplication.properties
file to use when starting the FORMCYCLE app.- Returns:
- This builder instance for chaining method calls.
- Throws:
IOException
- When the given URI could not be read.
-
withDatabaseProperties
public IFormcycleEnvironmentConfigBuilder withDatabaseProperties(Properties databaseProperties)
- Specified by:
withDatabaseProperties
in interfaceIFormcycleEnvironmentConfigBuilder
- Parameters:
databaseProperties
- The contents of thedatabase.properties
file to use when starting the FORMCYCLE app.- Returns:
- This builder instance for chaining method calls.
-
withDatabaseProperties
public IFormcycleEnvironmentConfigBuilder withDatabaseProperties(URI properties) throws IOException
- Specified by:
withDatabaseProperties
in interfaceIFormcycleEnvironmentConfigBuilder
- Parameters:
properties
- The contents of thedatabase.properties
file to use when starting the FORMCYCLE app.- Returns:
- This builder instance for chaining method calls.
- Throws:
IOException
- When the given URI could not be read.
-
withFcmLicense
public IFormcycleEnvironmentConfigBuilder withFcmLicense(String key, byte[] data)
- Specified by:
withFcmLicense
in interfaceIFormcycleEnvironmentConfigBuilder
- Parameters:
key
- Key of the license file.data
- Contents of the license file.- Returns:
- This builder instance for chaining method calls.
-
withFcmLicense
public IFormcycleEnvironmentConfigBuilder withFcmLicense(String key, URI data) throws IOException
- Specified by:
withFcmLicense
in interfaceIFormcycleEnvironmentConfigBuilder
- Parameters:
key
- Key of the license file.data
- Contents of the license file.- Returns:
- This builder instance for chaining method calls.
- Throws:
IOException
- When the license data could not be read from the given URI.
-
withFcmLicenseData
public IFormcycleEnvironmentConfigBuilder withFcmLicenseData(byte[] fcmLicenseData)
- Specified by:
withFcmLicenseData
in interfaceIFormcycleEnvironmentConfigBuilder
- Parameters:
fcmLicenseData
- Contents of the license file.- Returns:
- This builder instance for chaining method calls.
-
withFcmLicenseData
public IFormcycleEnvironmentConfigBuilder withFcmLicenseData(URI fcmLicense) throws IOException
- Specified by:
withFcmLicenseData
in interfaceIFormcycleEnvironmentConfigBuilder
- Parameters:
fcmLicense
- Contents of the license file.- Returns:
- This builder instance for chaining method calls.
- Throws:
IOException
- When the license data could not be read from the given URI.
-
withFcmLicenseKey
public IFormcycleEnvironmentConfigBuilder withFcmLicenseKey(String fcmLicenseKey)
- Specified by:
withFcmLicenseKey
in interfaceIFormcycleEnvironmentConfigBuilder
- Parameters:
fcmLicenseKey
- Key of the license file.- Returns:
- This builder instance for chaining method calls.
-
withFormcycleWar
public IFormcycleEnvironmentConfigBuilder withFormcycleWar(URI formcycleWar)
- Specified by:
withFormcycleWar
in interfaceIFormcycleEnvironmentConfigBuilder
- Parameters:
formcycleWar
- Path to the WAR with the FORMCYCLE app.- Returns:
- This builder instance for chaining method calls.
-
withLoggingProperties
public IFormcycleEnvironmentConfigBuilder withLoggingProperties(Properties loggingProperties)
- Specified by:
withLoggingProperties
in interfaceIFormcycleEnvironmentConfigBuilder
- Parameters:
loggingProperties
- The contents of thelogging.properties
file to use when starting the FORMCYCLE app.- Returns:
- This builder instance for chaining method calls.
-
withLoggingProperties
public IFormcycleEnvironmentConfigBuilder withLoggingProperties(URI properties) throws IOException
- Specified by:
withLoggingProperties
in interfaceIFormcycleEnvironmentConfigBuilder
- Parameters:
properties
- The contents of thelogging.properties
file to use when starting the FORMCYCLE app.- Returns:
- This builder instance for chaining method calls.
- Throws:
IOException
- When the given URI could not be read.
-
withParentClassLoader
public IFormcycleEnvironmentConfigBuilder withParentClassLoader(ClassLoader parentClassLoader)
- Specified by:
withParentClassLoader
in interfaceIFormcycleEnvironmentConfigBuilder
- Parameters:
parentClassLoader
- Parent class loader for the servlet container web app class loader.- Returns:
- This builder instance for chaining method calls.
-
withSystemMailProperties
public IFormcycleEnvironmentConfigBuilder withSystemMailProperties(Properties systemMailProperties)
- Specified by:
withSystemMailProperties
in interfaceIFormcycleEnvironmentConfigBuilder
- Parameters:
systemMailProperties
- The contents of thesystem-mail.properties
file to use when starting the FORMCYCLE app.- Returns:
- This builder instance for chaining method calls.
-
withSystemMailProperties
public IFormcycleEnvironmentConfigBuilder withSystemMailProperties(URI properties) throws IOException
- Specified by:
withSystemMailProperties
in interfaceIFormcycleEnvironmentConfigBuilder
- Parameters:
properties
- The contents of thesystem-mail.properties
file to use when starting the FORMCYCLE app.- Returns:
- This builder instance for chaining method calls.
- Throws:
IOException
- When the given URI could not be read.
-
-