Annotation Interface DefaultConfig

@Retention(RUNTIME) @Target({PARAMETER,FIELD}) public @interface DefaultConfig
Provides a convenient injection for ConfigRoot.config() or ConfigRoot.configPath().

Use this annotation on a Path if you want the pathname to the default configuration. Or instead, use this annotation on a ConfigurationLoader<CommentedConigurationNode> or ConfigurationReference<CommentedConigurationNode> to get a loader/reference for a HOCON based configuration file. Remember that Inject is also necessary.

See Also:
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Whether the the shared root for configuration should be used.
  • Element Details