@Documented
@Retention(RUNTIME)
@Target({TYPE,FIELD,PARAMETER})
@API(status=STABLE,
since="1.0")
public @interface PreferredConfig
Sets the preferred
Config subtype(s).
Usable both for Configurable classes and for Spring injection
points.- Since:
- 0.1
- Version:
- 1.0, 2025-11
- Author:
- (w) Iker Hernaez
- See Also:
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionbooleanSets if the default configuration should be used if one of the preferred ones is not found.Sets the preferred configuration classes.
-
Element Details
-
value
Sets the preferred configuration classes.- Returns:
- The preferred configuration classes.
- Default:
- {}
-
fallbackToDefaultConfig
boolean fallbackToDefaultConfigSets if the default configuration should be used if one of the preferred ones is not found.- Returns:
trueif the default configuration should be used.
- Default:
- true
-