Close menu

Different Data Types

Store configuration values in their native format.

ConfigSeeder can manage various kind of data which you can select while creating a new configuration value:

Currently, the following types are supported:

  • Strings
    This is the ConfigSeeders default data type. It can contain any string but is limited to a single line.
  • Multiline Strings
    A multiline string can contain a whole (text) file which then can be used by the OS Connector to provide configuration files to a Linux or Windows machine. Together with our templating feature a multiline string configuration value can be a powerful tool, see our OS Connector Demo.
  • Integers and Decimal
    A lot of technical configuration values like ports or timeouts are numbers. With introducing the data types Integer and Decimal we will support these types natively without the need to define custom regex types.
  • Regex
    The data type regex stores strings which follow the rules you define. With a regex controlled configuration value you can, for example, ensure that your email-key only contains valid email addresses.
  • Enum
    Define which values can be used in a configuration value. You can define an enum LogLevel which only allows a configuration value to be DEBUG, INFO, WARN or ERROR.
  • Binary
    Binary data is normally used in combination with the OS Connector. It allows you to provide data like key stores to a Linux or Windows machine.

Usage

ConfigSeeder will ensure that only data that fulfills the requirements can be stored in a configuration value.

When using our spring integration the configuration values can be injected like this: