Skip to main content

Component Runtime Configuration

To configure features at runtime, you can use the configuration.properties to create an ApplicationSettings class for the Component. This class will read a properties file when loaded.

This way, you can provide properties to your implementations by configuring the properties file in the application server.

Option
configuration.properties Component

Generate a {Component}ApplicationSettings class, which reads a {component}.ns.properties file from the classpath and exposes the configured properties.

<options>
<configuration.properties/>
</options>
Java Implementation
Optional<String> uploadUrlOption = SpaceApplicationSettings.getProperty("file.upload.url");
space.ns.properties
file.upload.url=https://some.location