@Retention(value=RUNTIME) @Target(value=FIELD) public @interface ConfigValue
Provides a shortcut for accessing the config (Sirius.getSettings()
). Also it performs the
appropriate conversion to the target type of the given field. A default value should be placed in the
component config (which then can be overridden in the application.conf or instance.conf).
Modifier and Type | Required Element and Description |
---|---|
String |
value
Contains the dot separated path to the desired config value.
|
Modifier and Type | Optional Element and Description |
---|---|
boolean |
required
Determines if the value is required (will cause an error if not filled).
|
public abstract String value
public abstract boolean required
Basically this should not happen, as it is a good practice to place a default value in the current component config.
Copyright © 2018. All rights reserved.