Package org.spongepowered.api.config
Annotation 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
Modifier and TypeRequired ElementDescriptionboolean
Whether the the shared root for configuration should be used.
-
Element Details