Package org.spongepowered.api.config
Annotation Type DefaultConfig
-
@Retention(RUNTIME) @Target({PARAMETER,FIELD}) public @interface DefaultConfig
Provides a convenient injection forConfigRoot.config()orConfigRoot.configPath().Use this annotation on a
Pathif you want the pathname to the default configuration. Or instead, use this annotation on aConfigurationLoader<CommentedConigurationNode>orConfigurationReference<CommentedConigurationNode>to get a loader/reference for a HOCON based configuration file. Remember thatInjectis also necessary.
-
-
Required Element Summary
Required Elements Modifier and Type Required Element Description booleansharedRootWhether the the shared root for configuration should be used.
-
-
-
Element Detail
-
sharedRoot
boolean sharedRoot
Whether the the shared root for configuration should be used.- Returns:
- True to use a shared root configuration
- See Also:
For information on what the shared root is
-
-